Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mtas
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Küstermann, Yvonne
mtas
Commits
853c9aa2
Commit
853c9aa2
authored
Jan 10, 2020
by
Küstermann, Yvonne
Browse files
Options
Downloads
Patches
Plain Diff
src/test/resources/data/conf/solrconfig.xml
parent
884286c9
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/test/resources/data/conf/solrconfig.xml
+1251
-1623
1251 additions, 1623 deletions
src/test/resources/data/conf/solrconfig.xml
with
1251 additions
and
1623 deletions
src/test/resources/data/conf/solrconfig.xml
+
1251
−
1623
View file @
853c9aa2
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
that you fully re-index after changing this setting as it can
that you fully re-index after changing this setting as it can
affect both how text is indexed and queried.
affect both how text is indexed and queried.
-->
-->
<luceneMatchVersion>
6.0
.0
</luceneMatchVersion>
<luceneMatchVersion>
7.5
.0
</luceneMatchVersion>
<!-- <lib/> directives can be used to instruct Solr to load any Jars
<!-- <lib/> directives can be used to instruct Solr to load any Jars
identified and use them to resolve any "plugins" specified in
identified and use them to resolve any "plugins" specified in
...
@@ -72,17 +72,17 @@
...
@@ -72,17 +72,17 @@
The examples below can be used to load some solr-contribs along
The examples below can be used to load some solr-contribs along
with their external dependencies.
with their external dependencies.
-->
-->
<lib
dir=
"${solr.install.dir:../../..}/contrib/extraction/lib"
regex=
".*\.jar"
/>
<lib
dir=
"${solr.install.dir:../../..
/..
}/contrib/extraction/lib"
regex=
".*\.jar"
/>
<lib
dir=
"${solr.install.dir:../../..}/dist/"
regex=
"solr-cell-\d.*\.jar"
/>
<lib
dir=
"${solr.install.dir:../../..
/..
}/dist/"
regex=
"solr-cell-\d.*\.jar"
/>
<lib
dir=
"${solr.install.dir:../../..}/contrib/clustering/lib/"
regex=
".*\.jar"
/>
<lib
dir=
"${solr.install.dir:../../..
/..
}/contrib/clustering/lib/"
regex=
".*\.jar"
/>
<lib
dir=
"${solr.install.dir:../../..}/dist/"
regex=
"solr-clustering-\d.*\.jar"
/>
<lib
dir=
"${solr.install.dir:../../..
/..
}/dist/"
regex=
"solr-clustering-\d.*\.jar"
/>
<lib
dir=
"${solr.install.dir:../../..}/contrib/langid/lib/"
regex=
".*\.jar"
/>
<lib
dir=
"${solr.install.dir:../../..
/..
}/contrib/langid/lib/"
regex=
".*\.jar"
/>
<lib
dir=
"${solr.install.dir:../../..}/dist/"
regex=
"solr-langid-\d.*\.jar"
/>
<lib
dir=
"${solr.install.dir:../../..
/..
}/dist/"
regex=
"solr-langid-\d.*\.jar"
/>
<lib
dir=
"${solr.install.dir:../../..}/contrib/velocity/lib"
regex=
".*\.jar"
/>
<lib
dir=
"${solr.install.dir:../../..
/..
}/contrib/velocity/lib"
regex=
".*\.jar"
/>
<lib
dir=
"${solr.install.dir:../../..}/dist/"
regex=
"solr-velocity-\d.*\.jar"
/>
<lib
dir=
"${solr.install.dir:../../..
/..
}/dist/"
regex=
"solr-velocity-\d.*\.jar"
/>
<!-- an exact 'path' can be used instead of a 'dir' to specify a
<!-- an exact 'path' can be used instead of a 'dir' to specify a
specific jar file. This will cause a serious error to be logged
specific jar file. This will cause a serious error to be logged
if it can't be loaded.
if it can't be loaded.
...
@@ -112,8 +112,7 @@
...
@@ -112,8 +112,7 @@
One can force a particular implementation via solr.MMapDirectoryFactory,
One can force a particular implementation via solr.MMapDirectoryFactory,
solr.NIOFSDirectoryFactory, or solr.SimpleFSDirectoryFactory.
solr.NIOFSDirectoryFactory, or solr.SimpleFSDirectoryFactory.
solr.RAMDirectoryFactory is memory based, not
solr.RAMDirectoryFactory is memory based and not persistent.
persistent, and doesn't work with replication.
-->
-->
<directoryFactory
name=
"DirectoryFactory"
<directoryFactory
name=
"DirectoryFactory"
class=
"${solr.directoryFactory:solr.NRTCachingDirectoryFactory}"
/>
class=
"${solr.directoryFactory:solr.NRTCachingDirectoryFactory}"
/>
...
@@ -126,32 +125,13 @@
...
@@ -126,32 +125,13 @@
are experimental, so if you choose to customize the index format, it's a good
are experimental, so if you choose to customize the index format, it's a good
idea to convert back to the official format e.g. via IndexWriter.addIndexes(IndexReader)
idea to convert back to the official format e.g. via IndexWriter.addIndexes(IndexReader)
before upgrading to a newer version to avoid unnecessary reindexing.
before upgrading to a newer version to avoid unnecessary reindexing.
A "compressionMode" string element can be added to <codecFactory> to choose
between the existing compression modes in the default codec: "BEST_SPEED" (default)
or "BEST_COMPRESSION".
-->
-->
<codecFactory
class=
"solr.SchemaCodecFactory"
/>
<codecFactory
class=
"solr.SchemaCodecFactory"
/>
<!-- To disable dynamic schema REST APIs, use the following for <schemaFactory>:
<!-- MTAS: use classic schema for demo -->
<schemaFactory class="ClassicIndexSchemaFactory"/>
When ManagedIndexSchemaFactory is specified instead, Solr will load the schema from
the resource named in 'managedSchemaResourceName', rather than from schema.xml.
Note that the managed schema resource CANNOT be named schema.xml. If the managed
schema does not exist, Solr will create it after reading schema.xml, then rename
'schema.xml' to 'schema.xml.bak'.
Do NOT hand edit the managed schema - external modifications will be ignored and
overwritten as a result of schema modification REST API calls.
When ManagedIndexSchemaFactory is specified with mutable = true, schema
modification REST API calls will be allowed; otherwise, error responses will be
sent back for these requests.
-->
<!--
<schemaFactory class="ManagedIndexSchemaFactory">
<bool name="mutable">true</bool>
<str name="managedSchemaResourceName">managed-schema</str>
</schemaFactory>
-->
<schemaFactory
class=
"ClassicIndexSchemaFactory"
/>
<schemaFactory
class=
"ClassicIndexSchemaFactory"
/>
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
@@ -169,12 +149,6 @@
...
@@ -169,12 +149,6 @@
<!-- Maximum time to wait for a write lock (ms) for an IndexWriter. Default: 1000 -->
<!-- Maximum time to wait for a write lock (ms) for an IndexWriter. Default: 1000 -->
<!-- <writeLockTimeout>1000</writeLockTimeout> -->
<!-- <writeLockTimeout>1000</writeLockTimeout> -->
<!-- The maximum number of simultaneous threads that may be
indexing documents at once in IndexWriter; if more than this
many threads arrive they will wait for others to finish.
Default in Solr/Lucene is 8. -->
<!-- <maxIndexingThreads>8</maxIndexingThreads> -->
<!-- Expert: Enabling compound file will use less files for the index,
<!-- Expert: Enabling compound file will use less files for the index,
using fewer file descriptors on the expense of performance decrease.
using fewer file descriptors on the expense of performance decrease.
Default in Lucene is "true". Default in Solr is "false" (since 3.6) -->
Default in Lucene is "true". Default in Solr is "false" (since 3.6) -->
...
@@ -197,23 +171,11 @@
...
@@ -197,23 +171,11 @@
Even older versions of Lucene used LogDocMergePolicy.
Even older versions of Lucene used LogDocMergePolicy.
-->
-->
<!--
<!--
<mergePolicy class="org.apache.
lucene
.index.TieredMergePolicy">
<mergePolicy
Factory
class="org.apache.
solr
.index.TieredMergePolicy
Factory
">
<int name="maxMergeAtOnce">10</int>
<int name="maxMergeAtOnce">10</int>
<int name="segmentsPerTier">10</int>
<int name="segmentsPerTier">10</int>
<double name="noCFSRatio">0.1</double>
<double name="noCFSRatio">0.1</double>
</mergePolicy>
</mergePolicyFactory>
-->
<!-- Merge Factor
The merge factor controls how many segments will get merged at a time.
For TieredMergePolicy, mergeFactor is a convenience parameter which
will set both MaxMergeAtOnce and SegmentsPerTier at once.
For LogByteSizeMergePolicy, mergeFactor decides how many new segments
will be allowed before they are merged into one.
Default is 10 for both merge policies.
-->
<!--
<mergeFactor>10</mergeFactor>
-->
-->
<!-- Expert: Merge Scheduler
<!-- Expert: Merge Scheduler
...
@@ -247,19 +209,6 @@
...
@@ -247,19 +209,6 @@
-->
-->
<lockType>
${solr.lock.type:native}
</lockType>
<lockType>
${solr.lock.type:native}
</lockType>
<!-- Unlock On Startup
If true, unlock any held write or commit locks on startup.
This defeats the locking mechanism that allows multiple
processes to safely access a lucene index, and should be used
with care. Default is "false".
This is not needed if lock type is 'single'
-->
<!--
<unlockOnStartup>false</unlockOnStartup>
-->
<!-- Commit Deletion Policy
<!-- Commit Deletion Policy
Custom deletion policies can be specified here. The class must
Custom deletion policies can be specified here. The class must
implement org.apache.lucene.index.IndexDeletionPolicy.
implement org.apache.lucene.index.IndexDeletionPolicy.
...
@@ -385,29 +334,6 @@
...
@@ -385,29 +334,6 @@
postCommit - fired after every commit or optimize command
postCommit - fired after every commit or optimize command
postOptimize - fired after every optimize command
postOptimize - fired after every optimize command
-->
-->
<!-- The RunExecutableListener executes an external command from a
hook such as postCommit or postOptimize.
exe - the name of the executable to run
dir - dir to use as the current working directory. (default=".")
wait - the calling thread waits until the executable returns.
(default="true")
args - the arguments to pass to the program. (default is none)
env - environment variables to set. (default is none)
-->
<!-- This example shows how RunExecutableListener could be used
with the script based replication...
http://wiki.apache.org/solr/CollectionDistribution
-->
<!--
<listener event="postCommit" class="solr.RunExecutableListener">
<str name="exe">solr/bin/snapshooter</str>
<str name="dir">.</str>
<bool name="wait">true</bool>
<arr name="args"> <str>arg1</str> <str>arg2</str> </arr>
<arr name="env"> <str>MYVAR=val1</str> </arr>
</listener>
-->
</updateHandler>
</updateHandler>
...
@@ -443,22 +369,14 @@
...
@@ -443,22 +369,14 @@
Query section - these settings control query time things like caches
Query section - these settings control query time things like caches
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<query>
<query>
<!-- Max Boolean Clauses
Maximum number of clauses in each BooleanQuery, an exception
is thrown if exceeded.
** WARNING **
This option actually modifies a global Lucene property that
will affect all SolrCores. If multiple solrconfig.xml files
disagree on this property, the value at any given moment will
be based on the last SolrCore to be initialized.
<!-- Maximum number of clauses in each BooleanQuery, an exception
is thrown if exceeded. It is safe to increase or remove this setting,
since it is purely an arbitrary limit to try and catch user errors where
large boolean queries may not be the best implementation choice.
-->
-->
<maxBooleanClauses>
1024
</maxBooleanClauses>
<maxBooleanClauses>
1024
</maxBooleanClauses>
<!-- Solr Internal Query Caches
<!-- Solr Internal Query Caches
There are two implementations of cache available for Solr,
There are two implementations of cache available for Solr,
...
@@ -489,6 +407,9 @@
...
@@ -489,6 +407,9 @@
the cache. (see java.util.HashMap)
the cache. (see java.util.HashMap)
autowarmCount - the number of entries to prepopulate from
autowarmCount - the number of entries to prepopulate from
and old cache.
and old cache.
maxRamMB - the maximum amount of RAM (in MB) that this cache is allowed
to occupy. Note that when this option is specified, the size
and initialSize parameters are ignored.
-->
-->
<filterCache
class=
"solr.FastLRUCache"
<filterCache
class=
"solr.FastLRUCache"
size=
"512"
size=
"512"
...
@@ -519,6 +440,14 @@
...
@@ -519,6 +440,14 @@
initialSize=
"512"
initialSize=
"512"
autowarmCount=
"0"
/>
autowarmCount=
"0"
/>
<!-- custom cache currently used by block join -->
<cache
name=
"perSegFilter"
class=
"solr.search.LRUCache"
size=
"10"
initialSize=
"0"
autowarmCount=
"10"
regenerator=
"solr.NoOpRegenerator"
/>
<!-- Field Value Cache
<!-- Field Value Cache
Cache used to hold field values that are quickly accessible
Cache used to hold field values that are quickly accessible
...
@@ -641,17 +570,6 @@
...
@@ -641,17 +570,6 @@
-->
-->
<useColdSearcher>
false
</useColdSearcher>
<useColdSearcher>
false
</useColdSearcher>
<!-- Max Warming Searchers
Maximum number of searchers that may be warming in the
background concurrently. An error is returned if this limit
is exceeded.
Recommend values of 1-2 for read-only slaves, higher for
masters w/o cache warming.
-->
<maxWarmingSearchers>
2
</maxWarmingSearchers>
</query>
</query>
...
@@ -660,21 +578,8 @@
...
@@ -660,21 +578,8 @@
This section contains instructions for how the SolrDispatchFilter
This section contains instructions for how the SolrDispatchFilter
should behave when processing requests for this SolrCore.
should behave when processing requests for this SolrCore.
handleSelect is a legacy option that affects the behavior of requests
such as /select?qt=XXX
handleSelect="true" will cause the SolrDispatchFilter to process
the request and dispatch the query to a handler specified by the
"qt" param, assuming "/select" isn't already registered.
handleSelect="false" will cause the SolrDispatchFilter to
ignore "/select" requests, resulting in a 404 unless a handler
is explicitly registered with the name "/select"
handleSelect="true" is not recommended for new users, but is the default
for backwards compatibility
-->
-->
<requestDispatcher
handleSelect=
"false"
>
<requestDispatcher
>
<!-- Request Parsing
<!-- Request Parsing
These settings indicate how Solr Requests may be parsed, and
These settings indicate how Solr Requests may be parsed, and
...
@@ -700,15 +605,14 @@
...
@@ -700,15 +605,14 @@
plugins.
plugins.
*** WARNING ***
*** WARNING ***
The settings below authorize Solr to fetch remote files, You
Before enabling remote streaming, you should make sure your
should make sure your system has some authentication before
system has authentication enabled.
using enableRemoteStreaming="true"
-->
<requestParsers enableRemoteStreaming="false"
<requestParsers
enableRemoteStreaming=
"true"
multipartUploadLimitInKB="-1"
multipartUploadLimitInKB=
"2048000"
formdataUploadLimitInKB="-1"
formdataUploadLimitInKB=
"2048000"
addHttpRequestToContext="false"/>
addHttpRequestToContext="false"/>
-->
<!-- HTTP Caching
<!-- HTTP Caching
...
@@ -772,14 +676,6 @@
...
@@ -772,14 +676,6 @@
Incoming queries will be dispatched to a specific handler by name
Incoming queries will be dispatched to a specific handler by name
based on the path specified in the request.
based on the path specified in the request.
Legacy behavior: If the request path uses "/select" but no Request
Handler has that name, and if handleSelect="true" has been specified in
the requestDispatcher, then the Request Handler is dispatched based on
the qt parameter. Handlers without a leading '/' are accessed this way
like so: http://host/app/[core/]select?qt=name If no qt is
given, then the requestHandler that declares default="true" will be
used or the one named "standard".
If a Request Handler is declared with startup="lazy", then it will
If a Request Handler is declared with startup="lazy", then it will
not be initialized until the first request that uses it.
not be initialized until the first request that uses it.
...
@@ -797,13 +693,19 @@
...
@@ -797,13 +693,19 @@
<!-- default values for query parameters can be specified, these
<!-- default values for query parameters can be specified, these
will be overridden by parameters in the request
will be overridden by parameters in the request
-->
-->
<!-- MTAS : add mtas component -->
<arr
name=
"last-components"
>
<arr
name=
"last-components"
>
<str>
mtas
</str>
<str>
mtas
</str>
</arr>
</arr>
<lst
name=
"defaults"
>
<lst
name=
"defaults"
>
<str
name=
"echoParams"
>
explicit
</str>
<str
name=
"echoParams"
>
explicit
</str>
<int
name=
"rows"
>
10
</int>
<int
name=
"rows"
>
10
</int>
<!-- <str name="df">text</str> -->
<!-- Default search field
<str name="df">text</str>
-->
<!-- Change from JSON to XML format (the default prior to Solr 7.0)
<str name="wt">xml</str>
-->
</lst>
</lst>
<!-- In addition to defaults, "appends" params can be specified
<!-- In addition to defaults, "appends" params can be specified
to identify values which should be appended to the list of
to identify values which should be appended to the list of
...
@@ -869,6 +771,15 @@
...
@@ -869,6 +771,15 @@
</requestHandler>
</requestHandler>
<!-- A Robust Example
This example SearchHandler declaration shows off usage of the
SearchHandler with many defaults declared
Note that multiple instances of the same Request Handler
(SearchHandler) can be registered multiple times with different
names (and different init parameters)
-->
<requestHandler
name=
"/browse"
class=
"solr.SearchHandler"
useParams=
"query,facets,velocity,browse"
>
<requestHandler
name=
"/browse"
class=
"solr.SearchHandler"
useParams=
"query,facets,velocity,browse"
>
<lst
name=
"defaults"
>
<lst
name=
"defaults"
>
<str
name=
"echoParams"
>
explicit
</str>
<str
name=
"echoParams"
>
explicit
</str>
...
@@ -881,14 +792,6 @@
...
@@ -881,14 +792,6 @@
</lst>
</lst>
</initParams>
</initParams>
<initParams
path=
"/update/**"
>
<lst
name=
"defaults"
>
<!--
<str name="update.chain">add-unknown-fields-to-the-schema</str>
-->
</lst>
</initParams>
<!-- Solr Cell Update Request Handler
<!-- Solr Cell Update Request Handler
http://wiki.apache.org/solr/ExtractingRequestHandler
http://wiki.apache.org/solr/ExtractingRequestHandler
...
@@ -904,102 +807,6 @@
...
@@ -904,102 +807,6 @@
</lst>
</lst>
</requestHandler>
</requestHandler>
<!--
The export request handler is used to export full sorted result sets.
Do not change these defaults.
-->
<requestHandler
name=
"/export"
class=
"solr.SearchHandler"
>
<lst
name=
"invariants"
>
<str
name=
"rq"
>
{!xport}
</str>
<str
name=
"wt"
>
xsort
</str>
<str
name=
"distrib"
>
false
</str>
</lst>
<arr
name=
"components"
>
<str>
query
</str>
</arr>
</requestHandler>
<!--
Distributed Stream processing.
-->
<requestHandler
name=
"/stream"
class=
"solr.StreamHandler"
>
<lst
name=
"invariants"
>
<str
name=
"wt"
>
json
</str>
<str
name=
"distrib"
>
false
</str>
</lst>
</requestHandler>
<!-- Field Analysis Request Handler
RequestHandler that provides much the same functionality as
analysis.jsp. Provides the ability to specify multiple field
types and field names in the same request and outputs
index-time and query-time analysis for each of them.
Request parameters are:
analysis.fieldname - field name whose analyzers are to be used
analysis.fieldtype - field type whose analyzers are to be used
analysis.fieldvalue - text for index-time analysis
q (or analysis.q) - text for query time analysis
analysis.showmatch (true|false) - When set to true and when
query analysis is performed, the produced tokens of the
field value analysis will be marked as "matched" for every
token that is produces by the query analysis
-->
<requestHandler
name=
"/analysis/field"
startup=
"lazy"
class=
"solr.FieldAnalysisRequestHandler"
/>
<!-- Document Analysis Handler
http://wiki.apache.org/solr/AnalysisRequestHandler
An analysis handler that provides a breakdown of the analysis
process of provided documents. This handler expects a (single)
content stream with the following format:
<docs>
<doc>
<field name="id">1</field>
<field name="name">The Name</field>
<field name="text">The Text Value</field>
</doc>
<doc>...</doc>
<doc>...</doc>
...
</docs>
Note: Each document must contain a field which serves as the
unique key. This key is used in the returned response to associate
an analysis breakdown to the analyzed document.
Like the FieldAnalysisRequestHandler, this handler also supports
query analysis by sending either an "analysis.query" or "q"
request parameter that holds the query text to be analyzed. It
also supports the "analysis.showmatch" parameter which when set to
true, all field tokens that match the query tokens will be marked
as a "match".
-->
<requestHandler
name=
"/analysis/document"
class=
"solr.DocumentAnalysisRequestHandler"
startup=
"lazy"
/>
<!-- Echo the request contents back to the client -->
<requestHandler
name=
"/debug/dump"
class=
"solr.DumpRequestHandler"
>
<lst
name=
"defaults"
>
<str
name=
"echoParams"
>
explicit
</str>
<str
name=
"echoHandler"
>
true
</str>
</lst>
</requestHandler>
<!-- Search Components
<!-- Search Components
Search components are registered to SolrCore and used by
Search components are registered to SolrCore and used by
...
@@ -1043,129 +850,9 @@
...
@@ -1043,129 +850,9 @@
-->
-->
<!-- Spell Check
The spell check component can return a list of alternative spelling
suggestions.
http://wiki.apache.org/solr/SpellCheckComponent
-->
<searchComponent
name=
"spellcheck"
class=
"solr.SpellCheckComponent"
>
<str
name=
"queryAnalyzerFieldType"
>
text_general
</str>
<!-- Multiple "Spell Checkers" can be declared and used by this
component
-->
<!-- a spellchecker built from a field of the main index -->
<lst
name=
"spellchecker"
>
<str
name=
"name"
>
default
</str>
<str
name=
"field"
>
text
</str>
<str
name=
"classname"
>
solr.DirectSolrSpellChecker
</str>
<!-- the spellcheck distance measure used, the default is the internal levenshtein -->
<str
name=
"distanceMeasure"
>
internal
</str>
<!-- minimum accuracy needed to be considered a valid spellcheck suggestion -->
<float
name=
"accuracy"
>
0.5
</float>
<!-- the maximum #edits we consider when enumerating terms: can be 1 or 2 -->
<int
name=
"maxEdits"
>
2
</int>
<!-- the minimum shared prefix when enumerating terms -->
<int
name=
"minPrefix"
>
1
</int>
<!-- maximum number of inspections per result. -->
<int
name=
"maxInspections"
>
5
</int>
<!-- minimum length of a query term to be considered for correction -->
<int
name=
"minQueryLength"
>
4
</int>
<!-- maximum threshold of documents a query term can appear to be considered for correction -->
<float
name=
"maxQueryFrequency"
>
0.01
</float>
<!-- uncomment this to require suggestions to occur in 1% of the documents
<float name="thresholdTokenFrequency">.01</float>
-->
</lst>
<!-- a spellchecker that can break or combine words. See "/spell" handler below for usage -->
<lst
name=
"spellchecker"
>
<str
name=
"name"
>
wordbreak
</str>
<str
name=
"classname"
>
solr.WordBreakSolrSpellChecker
</str>
<str
name=
"field"
>
name
</str>
<str
name=
"combineWords"
>
true
</str>
<str
name=
"breakWords"
>
true
</str>
<int
name=
"maxChanges"
>
10
</int>
</lst>
<!-- a spellchecker that uses a different distance measure -->
<!--
<lst name="spellchecker">
<str name="name">jarowinkler</str>
<str name="field">spell</str>
<str name="classname">solr.DirectSolrSpellChecker</str>
<str name="distanceMeasure">
org.apache.lucene.search.spell.JaroWinklerDistance
</str>
</lst>
-->
<!-- a spellchecker that use an alternate comparator
comparatorClass be one of:
1. score (default)
2. freq (Frequency first, then score)
3. A fully qualified class name
-->
<!--
<lst name="spellchecker">
<str name="name">freq</str>
<str name="field">lowerfilt</str>
<str name="classname">solr.DirectSolrSpellChecker</str>
<str name="comparatorClass">freq</str>
-->
<!-- A spellchecker that reads the list of words from a file -->
<!--
<lst name="spellchecker">
<str name="classname">solr.FileBasedSpellChecker</str>
<str name="name">file</str>
<str name="sourceLocation">spellings.txt</str>
<str name="characterEncoding">UTF-8</str>
<str name="spellcheckIndexDir">spellcheckerFile</str>
</lst>
-->
</searchComponent>
<!-- A request handler for demonstrating the spellcheck component.
NOTE: This is purely as an example. The whole purpose of the
SpellCheckComponent is to hook it into the request handler that
handles your normal user queries so that a separate request is
not needed to get suggestions.
IN OTHER WORDS, THERE IS REALLY GOOD CHANCE THE SETUP BELOW IS
NOT WHAT YOU WANT FOR YOUR PRODUCTION SYSTEM!
See http://wiki.apache.org/solr/SpellCheckComponent for details
on the request parameters.
-->
<requestHandler
name=
"/spell"
class=
"solr.SearchHandler"
startup=
"lazy"
>
<lst
name=
"defaults"
>
<!-- Solr will use suggestions from both the 'default' spellchecker
and from the 'wordbreak' spellchecker and combine them.
collations (re-written queries) can include a combination of
corrections from both spellcheckers -->
<str
name=
"spellcheck.dictionary"
>
default
</str>
<str
name=
"spellcheck.dictionary"
>
wordbreak
</str>
<str
name=
"spellcheck"
>
on
</str>
<str
name=
"spellcheck.extendedResults"
>
true
</str>
<str
name=
"spellcheck.count"
>
10
</str>
<str
name=
"spellcheck.alternativeTermCount"
>
5
</str>
<str
name=
"spellcheck.maxResultsForSuggest"
>
5
</str>
<str
name=
"spellcheck.collate"
>
true
</str>
<str
name=
"spellcheck.collateExtendedResults"
>
true
</str>
<str
name=
"spellcheck.maxCollationTries"
>
10
</str>
<str
name=
"spellcheck.maxCollations"
>
5
</str>
</lst>
<arr
name=
"last-components"
>
<str>
spellcheck
</str>
</arr>
</requestHandler>
<!-- Term Vector Component
<!-- Term Vector Component
...
@@ -1189,9 +876,6 @@
...
@@ -1189,9 +876,6 @@
</arr>
</arr>
</requestHandler>
</requestHandler>
<requestHandler
name=
"/mtas"
class=
"mtas.solr.handler.MtasRequestHandler"
/>
<!-- Clustering Component. (Omitted here. See the default Solr example for a typical configuration.) -->
<!-- Clustering Component. (Omitted here. See the default Solr example for a typical configuration.) -->
<!-- Terms Component
<!-- Terms Component
...
@@ -1203,7 +887,6 @@
...
@@ -1203,7 +887,6 @@
-->
-->
<searchComponent
name=
"terms"
class=
"solr.TermsComponent"
/>
<searchComponent
name=
"terms"
class=
"solr.TermsComponent"
/>
<!-- A request handler for demonstrating the terms component -->
<!-- A request handler for demonstrating the terms component -->
<requestHandler
name=
"/terms"
class=
"solr.SearchHandler"
startup=
"lazy"
>
<requestHandler
name=
"/terms"
class=
"solr.SearchHandler"
startup=
"lazy"
>
<lst
name=
"defaults"
>
<lst
name=
"defaults"
>
...
@@ -1224,11 +907,10 @@
...
@@ -1224,11 +907,10 @@
results for a given query regardless of the normal lucene
results for a given query regardless of the normal lucene
scoring.
scoring.
-->
-->
<!--
<searchComponent name="elevator" class="solr.QueryElevationComponent" >
<searchComponent
name=
"elevator"
class=
"solr.QueryElevationComponent"
>
pick a fieldType to analyze queries
<!--
pick a fieldType to analyze queries
-->
<str
name=
"queryFieldType"
>
string
</str>
<str
name=
"queryFieldType"
>
string
</str>
<str name="config-file">elevate.xml</str>
</searchComponent>
</searchComponent> -->
<!-- A request handler for demonstrating the elevator component -->
<!-- A request handler for demonstrating the elevator component -->
<requestHandler
name=
"/elevate"
class=
"solr.SearchHandler"
startup=
"lazy"
>
<requestHandler
name=
"/elevate"
class=
"solr.SearchHandler"
startup=
"lazy"
>
...
@@ -1240,6 +922,9 @@
...
@@ -1240,6 +922,9 @@
</arr>
</arr>
</requestHandler>
</requestHandler>
<!-- MTAS: requestHandler -->
<requestHandler
name=
"/mtas"
class=
"mtas.solr.handler.MtasRequestHandler"
/>
<!-- Highlighting Component
<!-- Highlighting Component
http://wiki.apache.org/solr/HighlightingParameters
http://wiki.apache.org/solr/HighlightingParameters
...
@@ -1346,6 +1031,7 @@
...
@@ -1346,6 +1031,7 @@
</highlighting>
</highlighting>
</searchComponent>
</searchComponent>
<!-- MTAS: searchComponent -->
<searchComponent
name=
"mtas"
class=
"mtas.solr.handler.component.MtasSolrSearchComponent"
>
<searchComponent
name=
"mtas"
class=
"mtas.solr.handler.component.MtasSolrSearchComponent"
>
<str
name=
"collectionCacheDirectory"
>
${solr.core.instanceDir}/cache/collection
</str>
<str
name=
"collectionCacheDirectory"
>
${solr.core.instanceDir}/cache/collection
</str>
<long
name=
"collectionLifetime"
>
86400
</long>
<long
name=
"collectionLifetime"
>
86400
</long>
...
@@ -1353,6 +1039,7 @@
...
@@ -1353,6 +1039,7 @@
<int
name=
"collectionMaximumOverflow"
>
10
</int>
<int
name=
"collectionMaximumOverflow"
>
10
</int>
</searchComponent>
</searchComponent>
<!-- Update Processors
<!-- Update Processors
Chains of Update Processor Factories for dealing with Update
Chains of Update Processor Factories for dealing with Update
...
@@ -1365,76 +1052,20 @@
...
@@ -1365,76 +1052,20 @@
<!-- Add unknown fields to the schema
<!-- Add unknown fields to the schema
An example f
ield type guessing update processor that will
F
ield type guessing update processor
s
that will
attempt to parse string-typed field values as Booleans, Longs,
attempt to parse string-typed field values as Booleans, Longs,
Doubles, or Dates, and then add schema fields with the guessed
Doubles, or Dates, and then add schema fields with the guessed
field types.
field types. Text content will be indexed as "text_general" as
well as a copy to a plain string version in *_str.
Th
is
require
s
that the schema is both managed and mutable, by
Th
ese
require that the schema is both managed and mutable, by
declaring schemaFactory as ManagedIndexSchemaFactory, with
declaring schemaFactory as ManagedIndexSchemaFactory, with
mutable specified as true.
mutable specified as true.
See http://wiki.apache.org/solr/GuessingFieldTypes
See http://wiki.apache.org/solr/GuessingFieldTypes
-->
-->
<!--
<updateRequestProcessorChain name="add-unknown-fields-to-the-schema">
#UUIDUpdateProcessorFactory will generate an id if none is present in the incoming document
<processor class="solr.UUIDUpdateProcessorFactory" />
<processor class="solr.LogUpdateProcessorFactory"/>
<processor class="solr.DistributedUpdateProcessorFactory"/>
<processor class="solr.RemoveBlankFieldUpdateProcessorFactory"/>
<processor class="solr.FieldNameMutatingUpdateProcessorFactory">
<str name="pattern">[^\w-\.]</str>
<str name="replacement">_</str>
</processor>
<processor class="solr.ParseBooleanFieldUpdateProcessorFactory"/>
<processor class="solr.ParseLongFieldUpdateProcessorFactory"/>
<processor class="solr.ParseDoubleFieldUpdateProcessorFactory"/>
<processor class="solr.ParseDateFieldUpdateProcessorFactory">
<arr name="format">
<str>yyyy-MM-dd'T'HH:mm:ss.SSSZ</str>
<str>yyyy-MM-dd'T'HH:mm:ss,SSSZ</str>
<str>yyyy-MM-dd'T'HH:mm:ss.SSS</str>
<str>yyyy-MM-dd'T'HH:mm:ss,SSS</str>
<str>yyyy-MM-dd'T'HH:mm:ssZ</str>
<str>yyyy-MM-dd'T'HH:mm:ss</str>
<str>yyyy-MM-dd'T'HH:mmZ</str>
<str>yyyy-MM-dd'T'HH:mm</str>
<str>yyyy-MM-dd HH:mm:ss.SSSZ</str>
<str>yyyy-MM-dd HH:mm:ss,SSSZ</str>
<str>yyyy-MM-dd HH:mm:ss.SSS</str>
<str>yyyy-MM-dd HH:mm:ss,SSS</str>
<str>yyyy-MM-dd HH:mm:ssZ</str>
<str>yyyy-MM-dd HH:mm:ss</str>
<str>yyyy-MM-dd HH:mmZ</str>
<str>yyyy-MM-dd HH:mm</str>
<str>yyyy-MM-dd</str>
</arr>
</processor>
<processor class="solr.AddSchemaFieldsUpdateProcessorFactory">
<str name="defaultFieldType">strings</str>
<lst name="typeMapping">
<str name="valueClass">java.lang.Boolean</str>
<str name="fieldType">booleans</str>
</lst>
<lst name="typeMapping">
<str name="valueClass">java.util.Date</str>
<str name="fieldType">tdates</str>
</lst>
<lst name="typeMapping">
<str name="valueClass">java.lang.Long</str>
<str name="valueClass">java.lang.Integer</str>
<str name="fieldType">tlongs</str>
</lst>
<lst name="typeMapping">
<str name="valueClass">java.lang.Number</str>
<str name="fieldType">tdoubles</str>
</lst>
</processor>
<processor class="solr.RunUpdateProcessorFactory"/>
</updateRequestProcessorChain>
-->
<!-- Deduplication
<!-- Deduplication
An example dedup update processor that creates the "id" field
An example dedup update processor that creates the "id" field
...
@@ -1498,6 +1129,8 @@
...
@@ -1498,6 +1129,8 @@
</updateRequestProcessorChain>
</updateRequestProcessorChain>
-->
-->
<!-- MTAS: updates -->
<requestHandler
name=
"/update"
class=
"solr.UpdateRequestHandler"
>
<requestHandler
name=
"/update"
class=
"solr.UpdateRequestHandler"
>
<lst
name=
"defaults"
>
<lst
name=
"defaults"
>
<str
name=
"update.chain"
>
mtasUpdateProcessor
</str>
<str
name=
"update.chain"
>
mtasUpdateProcessor
</str>
...
@@ -1550,6 +1183,8 @@
...
@@ -1550,6 +1183,8 @@
-->
-->
<queryResponseWriter
name=
"velocity"
class=
"solr.VelocityResponseWriter"
startup=
"lazy"
>
<queryResponseWriter
name=
"velocity"
class=
"solr.VelocityResponseWriter"
startup=
"lazy"
>
<str
name=
"template.base.dir"
>
${velocity.template.base.dir:}
</str>
<str
name=
"template.base.dir"
>
${velocity.template.base.dir:}
</str>
<str
name=
"solr.resource.loader.enabled"
>
${velocity.solr.resource.loader.enabled:true}
</str>
<str
name=
"params.resource.loader.enabled"
>
${velocity.params.resource.loader.enabled:false}
</str>
</queryResponseWriter>
</queryResponseWriter>
<!-- XSLT response writer transforms the XML output by any xslt file found
<!-- XSLT response writer transforms the XML output by any xslt file found
...
@@ -1562,7 +1197,7 @@
...
@@ -1562,7 +1197,7 @@
<!-- Query Parsers
<!-- Query Parsers
http://
wiki
.apache.org/solr/
SolrQ
uery
S
yntax
http
s
://
lucene
.apache.org/solr/
guide/q
uery
-s
yntax
-and-parsing.html
Multiple QParserPlugins can be registered by name, and then
Multiple QParserPlugins can be registered by name, and then
used in either the "defType" param for the QueryComponent (used
used in either the "defType" param for the QueryComponent (used
...
@@ -1572,8 +1207,8 @@
...
@@ -1572,8 +1207,8 @@
<!--
<!--
<queryParser name="myparser" class="com.mycompany.MyQParserPlugin"/>
<queryParser name="myparser" class="com.mycompany.MyQParserPlugin"/>
-->
-->
<queryParser
name=
"mtas_cql"
class=
"mtas.solr.search.MtasSolrCQLQParserPlugin"
/>
<queryParser
name=
"mtas_cql"
class=
"mtas.solr.search.MtasSolrCQLQParserPlugin"
/>
<queryParser
name=
"mtas_simple"
class=
"mtas.solr.search.MtasSolrSimpleQParserPlugin"
/>
<queryParser
name=
"mtas_join"
class=
"mtas.solr.search.MtasSolrJoinQParserPlugin"
/>
<queryParser
name=
"mtas_join"
class=
"mtas.solr.search.MtasSolrJoinQParserPlugin"
/>
<!-- Function Parsers
<!-- Function Parsers
...
@@ -1613,11 +1248,4 @@
...
@@ -1613,11 +1248,4 @@
EditorialMarkerFactory will do exactly that:
EditorialMarkerFactory will do exactly that:
<transformer name="qecBooster" class="org.apache.solr.response.transform.EditorialMarkerFactory" />
<transformer name="qecBooster" class="org.apache.solr.response.transform.EditorialMarkerFactory" />
-->
-->
<!-- Legacy config for the admin interface -->
<admin>
<defaultQuery>
*:*
</defaultQuery>
</admin>
</config>
</config>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment