solr/conf/solrconfig.xml in blacklight_oai_provider-6.1.1 vs solr/conf/solrconfig.xml in blacklight_oai_provider-7.0.2
- old
+ new
@@ -30,12 +30,10 @@
-->
<luceneMatchVersion>5.0.0</luceneMatchVersion>
<lib dir="${solr.install.dir:../../../..}/contrib/analysis-extras/lib" />
<lib dir="${solr.install.dir:../../../..}/contrib/analysis-extras/lucene-libs" />
- <lib dir="${solr.install.dir:../../../..}/contrib/extraction/lib" regex=".*\.jar" />
- <lib dir="${solr.install.dir:../../../..}/dist/" regex="solr-cell-\d.*\.jar" />
<directoryFactory name="DirectoryFactory"
class="${solr.directoryFactory:solr.NRTCachingDirectoryFactory}">
</directoryFactory>
@@ -45,35 +43,20 @@
<dataDir>${solr.blacklight-core.data.dir:}</dataDir>
<requestDispatcher handleSelect="true" >
- <requestParsers enableRemoteStreaming="false" multipartUploadLimitInKB="2048000" />
+ <requestParsers enableRemoteStreaming="false" multipartUploadLimitInKB="2048" />
</requestDispatcher>
<requestHandler name="/analysis/field" startup="lazy" class="solr.FieldAnalysisRequestHandler" />
<!-- config for the admin interface -->
<admin>
<defaultQuery>*:*</defaultQuery>
</admin>
- <updateHandler class="solr.DirectUpdateHandler2">
- <updateLog>
- <str name="dir">${solr.ulog.dir:}</str>
- </updateLog>
-
- <autoCommit>
- <maxTime>${solr.autoCommit.maxTime:15000}</maxTime>
- <openSearcher>false</openSearcher>
- </autoCommit>
-
- <autoSoftCommit>
- <maxTime>${solr.autoSoftCommit.maxTime:-1}</maxTime>
- </autoSoftCommit>
- </updateHandler>
-
<!-- SearchHandler
http://wiki.apache.org/solr/SearchHandler
For processing Search Queries, the primary Request Handler
@@ -84,69 +67,229 @@
<requestHandler name="search" class="solr.SearchHandler" default="true">
<!-- default values for query parameters can be specified, these
will be overridden by parameters in the request
-->
<lst name="defaults">
- <str name="defType">edismax</str>
+ <str name="defType">dismax</str>
<str name="echoParams">explicit</str>
+ <int name="rows">10</int>
+
<str name="q.alt">*:*</str>
<str name="mm">2<-1 5<-2 6<90%</str>
- <int name="qs">1</int>
- <int name="ps">2</int>
- <float name="tie">0.01</float>
+
<!-- this qf and pf are used by default, if not otherwise specified by
client. The default blacklight_config will use these for the
- "keywords" search. See the author_qf/author_pf, title_qf, etc
+ "keywords" search. See the author_qf/author_pf, title_qf, etc
below, which the default blacklight_config will specify for
those searches. You may also be interested in:
http://wiki.apache.org/solr/LocalParams
-->
- <str name="qf">
- id
- title_tsim
- author_tsim
- subject_ssim
- </str>
- <str name="pf">
- all_text_timv^10
- </str>
+ <str name="qf">
+ title_unstem_search^100000
+ subtitle_unstem_search^50000
+ title_t^25000
+ subtitle_t^10000
+ title_addl_unstem_search^5000
+ title_addl_t^2500
+ title_added_entry_unstem_search^1500
+ title_added_entry_t^1250
+ subject_topic_unstem_search^1000
+ subject_unstem_search^750
+ subject_topic_facet^625
+ subject_t^500
+ author_unstem_search^250
+ author_addl_unstem_search^250
+ author_t^100
+ author_addl_t^50
+ subject_addl_unstem_search^250
+ subject_addl_t^50
+ title_series_unstem_search^25
+ title_series_t^10
+ isbn_t
+ text
+ </str>
+ <str name="pf">
+ title_unstem_search^1000000
+ subtitle_unstem_search^500000
+ title_t^250000
+ subtitle_t^100000
+ title_addl_unstem_search^50000
+ title_addl_t^25000
+ title_added_entry_unstem_search^15000
+ title_added_entry_t^12500
+ subject_topic_unstem_search^10000
+ subject_unstem_search^7500
+ subject_topic_facet^6250
+ subject_t^5000
+ author_unstem_search^2500
+ author_addl_unstem_search^2500
+ author_t^1000
+ author_addl_t^500
+ subject_addl_unstem_search^2500
+ subject_addl_t^500
+ title_series_unstem_search^250
+ title_series_t^100
+ text^10
+ </str>
<str name="author_qf">
- author_tsim
+ author_unstem_search^200
+ author_addl_unstem_search^50
+ author_t^20
+ author_addl_t
</str>
<str name="author_pf">
+ author_unstem_search^2000
+ author_addl_unstem_search^500
+ author_t^200
+ author_addl_t^10
</str>
<str name="title_qf">
- title_tsim
+ title_unstem_search^50000
+ subtitle_unstem_search^25000
+ title_addl_unstem_search^10000
+ title_t^5000
+ subtitle_t^2500
+ title_addl_t^100
+ title_added_entry_unstem_search^50
+ title_added_entry_t^10
+ title_series_unstem_search^5
+ title_series_t
</str>
<str name="title_pf">
+ title_unstem_search^500000
+ subtitle_unstem_search^250000
+ title_addl_unstem_search^100000
+ title_t^50000
+ subtitle_t^25000
+ title_addl_t^1000
+ title_added_entry_unstem_search^500
+ title_added_entry_t^100
+ title_series_t^50
+ title_series_unstem_search^10
</str>
<str name="subject_qf">
- subject_ssim
+ subject_topic_unstem_search^200
+ subject_unstem_search^125
+ subject_topic_facet^100
+ subject_t^50
+ subject_addl_unstem_search^10
+ subject_addl_t
</str>
<str name="subject_pf">
+ subject_topic_unstem_search^2000
+ subject_unstem_search^1250
+ subject_t^1000
+ subject_topic_facet^500
+ subject_addl_unstem_search^100
+ subject_addl_t^10
</str>
+
+ <int name="ps">3</int>
+ <float name="tie">0.01</float>
<str name="fl">
- *,
- score
+ id,
+ score,
+ author_display,
+ author_vern_display,
+ format,
+ isbn_t,
+ language_facet,
+ lc_callnum_display,
+ material_type_display,
+ published_display,
+ published_vern_display,
+ pub_date,
+ title_display,
+ title_vern_display,
+ subject_topic_facet,
+ subject_geo_facet,
+ subject_era_facet,
+ subtitle_display,
+ subtitle_vern_display,
+ url_fulltext_display,
+ url_suppl_display,
+ marc_display,
</str>
<str name="facet">true</str>
<str name="facet.mincount">1</str>
-
+ <str name="facet.field">format</str>
+ <str name="facet.field">lc_1letter_facet</str>
+ <str name="facet.field">lc_alpha_facet</str>
+ <str name="facet.field">lc_b4cutter_facet</str>
+ <str name="facet.field">language_facet</str>
+ <str name="facet.field">pub_date</str>
+ <str name="facet.field">subject_era_facet</str>
+ <str name="facet.field">subject_geo_facet</str>
+ <str name="facet.field">subject_topic_facet</str>
+
<str name="spellcheck">true</str>
<str name="spellcheck.dictionary">default</str>
<str name="spellcheck.onlyMorePopular">true</str>
<str name="spellcheck.extendedResults">true</str>
<str name="spellcheck.collate">false</str>
<str name="spellcheck.count">5</str>
</lst>
+ <!-- In addition to defaults, "appends" params can be specified
+ to identify values which should be appended to the list of
+ multi-val params from the query (or the existing "defaults").
+ -->
+ <!-- In this example, the param "fq=instock:true" would be appended to
+ any query time fq params the user may specify, as a mechanism for
+ partitioning the index, independent of any user selected filtering
+ that may also be desired (perhaps as a result of faceted searching).
+
+ NOTE: there is *absolutely* nothing a client can do to prevent these
+ "appends" values from being used, so don't use this mechanism
+ unless you are sure you always want it.
+ -->
+ <!--
+ <lst name="appends">
+ <str name="fq">inStock:true</str>
+ </lst>
+ -->
+ <!-- "invariants" are a way of letting the Solr maintainer lock down
+ the options available to Solr clients. Any params values
+ specified here are used regardless of what values may be specified
+ in either the query, the "defaults", or the "appends" params.
+
+ In this example, the facet.field and facet.query params would
+ be fixed, limiting the facets clients can use. Faceting is
+ not turned on by default - but if the client does specify
+ facet=true in the request, these are the only facets they
+ will be able to see counts for; regardless of what other
+ facet.field or facet.query params they may specify.
+
+ NOTE: there is *absolutely* nothing a client can do to prevent these
+ "invariants" values from being used, so don't use this mechanism
+ unless you are sure you always want it.
+ -->
+ <!--
+ <lst name="invariants">
+ <str name="facet.field">cat</str>
+ <str name="facet.field">manu_exact</str>
+ <str name="facet.query">price:[* TO 500]</str>
+ <str name="facet.query">price:[500 TO *]</str>
+ </lst>
+ -->
+ <!-- If the default list of SearchComponents is not desired, that
+ list can either be overridden completely, or components can be
+ prepended or appended to the default list. (see below)
+ -->
+ <!--
+ <arr name="components">
+ <str>nameOfCustomComponent1</str>
+ <str>nameOfCustomComponent2</str>
+ </arr>
+ -->
<arr name="last-components">
<str>spellcheck</str>
</arr>
+
</requestHandler>
<!-- Spell Check
The spell check component can return a list of alternative spelling
@@ -231,12 +374,10 @@
<str name="spellcheckIndexDir">spellcheckerFile</str>
</lst>
-->
</searchComponent>
-<!-- suggest searchComponent and requestHandler disabled by default due to performance penalties -->
-<!--
<searchComponent name="suggest" class="solr.SuggestComponent">
<lst name="suggester">
<str name="name">mySuggester</str>
<str name="lookupImpl">FuzzyLookupFactory</str>
<str name="suggestAnalyzerFieldType">textSuggest</str>
@@ -253,22 +394,8 @@
</lst>
<arr name="components">
<str>suggest</str>
</arr>
</requestHandler>
--->
-
- <requestHandler name="/update/extract" class="org.apache.solr.handler.extraction.ExtractingRequestHandler">
- <lst name="defaults">
- <str name="fmap.Last-Modified">last_modified</str>
- <str name="uprefix">ignored_</str>
- </lst>
- <!--Optional. Specify a path to a tika configuration file. See the Tika docs for details.-->
- <!-- <str name="tika.config">/my/path/to/tika.config</str> -->
- <!-- Optional. Specify one or more date formats to parse. See DateUtil.DEFAULT_DATE_FORMATS
- for default date formats -->
- <!-- <lst name="date.formats"> -->
- <!-- <str>yyyy-MM-dd</str> -->
- <!-- </lst> -->
- </requestHandler>
+
</config>