solrconfig.xml 70 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!--
  3. Licensed to the Apache Software Foundation (ASF) under one or more
  4. contributor license agreements. See the NOTICE file distributed with
  5. this work for additional information regarding copyright ownership.
  6. The ASF licenses this file to You under the Apache License, Version 2.0
  7. (the "License"); you may not use this file except in compliance with
  8. the License. You may obtain a copy of the License at
  9. http://www.apache.org/licenses/LICENSE-2.0
  10. Unless required by applicable law or agreed to in writing, software
  11. distributed under the License is distributed on an "AS IS" BASIS,
  12. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. See the License for the specific language governing permissions and
  14. limitations under the License.
  15. -->
  16. <!--
  17. For more details about configurations options that may appear in
  18. this file, see http://wiki.apache.org/solr/SolrConfigXml.
  19. -->
  20. <config name="drupal-4.4-solr-6.x" >
  21. <!-- In all configuration below, a prefix of "solr." for class names
  22. is an alias that causes solr to search appropriate packages,
  23. including org.apache.solr.(search|update|request|core|analysis)
  24. You may also specify a fully qualified Java classname if you
  25. have your own custom plugins.
  26. -->
  27. <!-- Set this to 'false' if you want solr to continue working after
  28. it has encountered an severe configuration error. In a
  29. production environment, you may want solr to keep working even
  30. if one handler is mis-configured.
  31. You may also set this to false using by setting the system
  32. property:
  33. -Dsolr.abortOnConfigurationError=false
  34. -->
  35. <abortOnConfigurationError>${solr.abortOnConfigurationError:true}</abortOnConfigurationError>
  36. <!-- Controls what version of Lucene various components of Solr
  37. adhere to. Generally, you want to use the latest version to
  38. get all bug fixes and improvements. It is highly recommended
  39. that you fully re-index after changing this setting as it can
  40. affect both how text is indexed and queried.
  41. -->
  42. <luceneMatchVersion>${solr.luceneMatchVersion:LUCENE_60}</luceneMatchVersion>
  43. <!-- <lib/> directives can be used to instruct Solr to load any Jars
  44. identified and use them to resolve any "plugins" specified in
  45. your solrconfig.xml or schema.xml (ie: Analyzers, Request
  46. Handlers, etc...).
  47. All directories and paths are resolved relative to the
  48. instanceDir.
  49. Please note that <lib/> directives are processed in the order
  50. that they appear in your solrconfig.xml file, and are "stacked"
  51. on top of each other when building a ClassLoader - so if you have
  52. plugin jars with dependencies on other jars, the "lower level"
  53. dependency jars should be loaded first.
  54. If a "./lib" directory exists in your instanceDir, all files
  55. found in it are included as if you had used the following
  56. syntax...
  57. <lib dir="./lib" />
  58. -->
  59. <!-- A "dir" option by itself adds any files found in the directory to the
  60. classpath, this is useful for including all jars in a directory.
  61. -->
  62. <lib dir="${solr.contrib.dir:../../../contrib}/extraction/lib" />
  63. <lib dir="${solr.contrib.dir:../../../contrib}/clustering/lib/" />
  64. <!-- The velocity library has been known to crash Solr in some
  65. instances when deployed as a war file to Tomcat. Therefore all
  66. references have been removed from the default configuration.
  67. @see http://drupal.org/node/1612556
  68. -->
  69. <!-- <lib dir="../../contrib/velocity/lib" /> -->
  70. <!-- When a regex is specified in addition to a directory, only the
  71. files in that directory which completely match the regex
  72. (anchored on both ends) will be included.
  73. -->
  74. <!--<lib dir="../../dist/" regex="apache-solr-cell-\d.*\.jar" />-->
  75. <!--<lib dir="../../dist/" regex="apache-solr-clustering-\d.*\.jar" />-->
  76. <!--<lib dir="../../dist/" regex="apache-solr-dataimporthandler-\d.*\.jar" />-->
  77. <!--<lib dir="../../dist/" regex="apache-solr-langid-\d.*\.jar" />-->
  78. <!-- <lib dir="../../dist/" regex="apache-solr-velocity-\d.*\.jar" /> -->
  79. <!-- If a dir option (with or without a regex) is used and nothing
  80. is found that matches, it will be ignored
  81. -->
  82. <!--<lib dir="../../contrib/clustering/lib/" />-->
  83. <!--<lib dir="/total/crap/dir/ignored" />-->
  84. <!-- an exact path can be used to specify a specific file. This
  85. will cause a serious error to be logged if it can't be loaded.
  86. -->
  87. <!--
  88. <lib path="../a-jar-that-does-not-exist.jar" />
  89. -->
  90. <!-- Data Directory
  91. Used to specify an alternate directory to hold all index data
  92. other than the default ./data under the Solr home. If
  93. replication is in use, this should match the replication
  94. configuration.
  95. -->
  96. <dataDir>${solr.data.dir:}</dataDir>
  97. <!-- The DirectoryFactory to use for indexes.
  98. solr.StandardDirectoryFactory is filesystem
  99. based and tries to pick the best implementation for the current
  100. JVM and platform. solr.NRTCachingDirectoryFactory, the default,
  101. wraps solr.StandardDirectoryFactory and caches small files in memory
  102. for better NRT performance.
  103. One can force a particular implementation via solr.MMapDirectoryFactory,
  104. solr.NIOFSDirectoryFactory, or solr.SimpleFSDirectoryFactory.
  105. solr.RAMDirectoryFactory is memory based, not
  106. persistent, and doesn't work with replication.
  107. -->
  108. <directoryFactory name="DirectoryFactory"
  109. class="${solr.directoryFactory:solr.NRTCachingDirectoryFactory}"/>
  110. <!-- The CodecFactory for defining the format of the inverted index.
  111. The default implementation is SchemaCodecFactory, which is the official
  112. Lucene index format, but hooks into the schema to provide per-field
  113. customization of the postings lists and per-document values in the
  114. fieldType element (postingsFormat/docValuesFormat). Note that most of the
  115. alternative implementations are experimental, so if you choose to
  116. customize the index format, it's a good idea to convert back to the
  117. official format e.g. via IndexWriter.addIndexes(IndexReader) before
  118. upgrading to a newer version to avoid unnecessary reindexing.
  119. -->
  120. <codecFactory class="solr.SchemaCodecFactory"/>
  121. <!-- To enable dynamic schema REST APIs, use the following for <schemaFactory>:
  122. <schemaFactory class="ManagedIndexSchemaFactory">
  123. <bool name="mutable">true</bool>
  124. <str name="managedSchemaResourceName">managed-schema</str>
  125. </schemaFactory>
  126. When ManagedIndexSchemaFactory is specified, Solr will load the schema from
  127. the resource named in 'managedSchemaResourceName', rather than from schema.xml.
  128. Note that the managed schema resource CANNOT be named schema.xml. If the managed
  129. schema does not exist, Solr will create it after reading schema.xml, then rename
  130. 'schema.xml' to 'schema.xml.bak'.
  131. Do NOT hand edit the managed schema - external modifications will be ignored and
  132. overwritten as a result of schema modification REST API calls.
  133. When ManagedIndexSchemaFactory is specified with mutable = true, schema
  134. modification REST API calls will be allowed; otherwise, error responses will be
  135. sent back for these requests.
  136. -->
  137. <schemaFactory class="ClassicIndexSchemaFactory"/>
  138. <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  139. Index Config - These settings control low-level behavior of indexing
  140. Most example settings here show the default value, but are commented
  141. out, to more easily see where customizations have been made.
  142. Note: This replaces <indexDefaults> and <mainIndex> from older versions
  143. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
  144. <indexConfig>
  145. <!-- maxFieldLength was removed in 4.0. To get similar behavior, include a
  146. LimitTokenCountFilterFactory in your fieldType definition. E.g.
  147. <filter class="solr.LimitTokenCountFilterFactory" maxTokenCount="10000"/>
  148. -->
  149. <!-- Maximum time to wait for a write lock (ms) for an IndexWriter. Default: 1000 -->
  150. <!-- <writeLockTimeout>1000</writeLockTimeout> -->
  151. <!-- The maximum number of simultaneous threads that may be
  152. indexing documents at once in IndexWriter; if more than this
  153. many threads arrive they will wait for others to finish.
  154. Default in Solr/Lucene is 8. -->
  155. <!-- <maxIndexingThreads>8</maxIndexingThreads> -->
  156. <!-- Expert: Enabling compound file will use less files for the index,
  157. using fewer file descriptors on the expense of performance decrease.
  158. Default in Lucene is "true". Default in Solr is "false" (since 3.6) -->
  159. <!-- <useCompoundFile>false</useCompoundFile> -->
  160. <!-- ramBufferSizeMB sets the amount of RAM that may be used by Lucene
  161. indexing for buffering added documents and deletions before they are
  162. flushed to the Directory.
  163. maxBufferedDocs sets a limit on the number of documents buffered
  164. before flushing.
  165. If both ramBufferSizeMB and maxBufferedDocs is set, then
  166. Lucene will flush based on whichever limit is hit first.
  167. The default is 100 MB. -->
  168. <ramBufferSizeMB>32</ramBufferSizeMB>
  169. <!-- <maxBufferedDocs>1000</maxBufferedDocs> -->
  170. <!-- Expert: Merge Policy
  171. The Merge Policy in Lucene controls how merging is handled by
  172. Lucene. The default in Solr 3.3 is TieredMergePolicy.
  173. The default in 2.3 was the LogByteSizeMergePolicy,
  174. previous versions used LogDocMergePolicy.
  175. LogByteSizeMergePolicy chooses segments to merge based on
  176. their size. The Lucene 2.2 default, LogDocMergePolicy chose
  177. when to merge based on number of documents
  178. Other implementations of MergePolicy must have a no-argument
  179. constructor
  180. -->
  181. <mergePolicyFactory class="org.apache.solr.index.LogByteSizeMergePolicyFactory">
  182. <!-- Merge Factor
  183. The merge factor controls how many segments will get merged at a time.
  184. For TieredMergePolicy, mergeFactor is a convenience parameter which
  185. will set both MaxMergeAtOnce and SegmentsPerTier at once.
  186. For LogByteSizeMergePolicy, mergeFactor decides how many new segments
  187. will be allowed before they are merged into one.
  188. -->
  189. <int name="mergeFactor">4</int>
  190. </mergePolicyFactory>
  191. <!-- Expert: Merge Scheduler
  192. The Merge Scheduler in Lucene controls how merges are
  193. performed. The ConcurrentMergeScheduler (Lucene 2.3 default)
  194. can perform merges in the background using separate threads.
  195. The SerialMergeScheduler (Lucene 2.2 default) does not.
  196. -->
  197. <!--
  198. <mergeScheduler class="org.apache.lucene.index.ConcurrentMergeScheduler"/>
  199. -->
  200. <!-- LockFactory
  201. This option specifies which Lucene LockFactory implementation
  202. to use.
  203. single = SingleInstanceLockFactory - suggested for a
  204. read-only index or when there is no possibility of
  205. another process trying to modify the index.
  206. native = NativeFSLockFactory - uses OS native file locking.
  207. Do not use when multiple solr webapps in the same
  208. JVM are attempting to share a single index.
  209. simple = SimpleFSLockFactory - uses a plain file for locking
  210. Defaults: 'native' is default for Solr3.6 and later, otherwise
  211. 'simple' is the default
  212. More details on the nuances of each LockFactory...
  213. http://wiki.apache.org/lucene-java/AvailableLockFactories
  214. -->
  215. <lockType>${solr.lock.type:native}</lockType>
  216. <!-- Expert: Controls how often Lucene loads terms into memory
  217. Default is 128 and is likely good for most everyone.
  218. -->
  219. <!-- <termIndexInterval>256</termIndexInterval> -->
  220. <!-- If true, IndexReaders will be reopened (often more efficient)
  221. instead of closed and then opened.
  222. -->
  223. <reopenReaders>true</reopenReaders>
  224. <!-- Commit Deletion Policy
  225. Custom deletion policies can be specified here. The class must
  226. implement org.apache.lucene.index.IndexDeletionPolicy.
  227. http://lucene.apache.org/java/2_9_1/api/all/org/apache/lucene/index/IndexDeletionPolicy.html
  228. The default Solr IndexDeletionPolicy implementation supports
  229. deleting index commit points on number of commits, age of
  230. commit point and optimized status.
  231. The latest commit point should always be preserved regardless
  232. of the criteria.
  233. -->
  234. <deletionPolicy class="solr.SolrDeletionPolicy">
  235. <!-- The number of commit points to be kept -->
  236. <str name="maxCommitsToKeep">1</str>
  237. <!-- The number of optimized commit points to be kept -->
  238. <str name="maxOptimizedCommitsToKeep">0</str>
  239. <!--
  240. Delete all commit points once they have reached the given age.
  241. Supports DateMathParser syntax e.g.
  242. -->
  243. <!--
  244. <str name="maxCommitAge">30MINUTES</str>
  245. <str name="maxCommitAge">1DAY</str>
  246. -->
  247. </deletionPolicy>
  248. <!-- Lucene Infostream
  249. To aid in advanced debugging, Lucene provides an "InfoStream"
  250. of detailed information when indexing.
  251. Setting the value to true will instruct the underlying Lucene
  252. IndexWriter to write its info stream to solr's log. By default,
  253. this is enabled here, and controlled through log4j.properties.
  254. -->
  255. <infoStream>true</infoStream>
  256. </indexConfig>
  257. <!-- JMX
  258. This example enables JMX if and only if an existing MBeanServer
  259. is found, use this if you want to configure JMX through JVM
  260. parameters. Remove this to disable exposing Solr configuration
  261. and statistics to JMX.
  262. For more details see http://wiki.apache.org/solr/SolrJmx
  263. -->
  264. <!-- <jmx /> -->
  265. <!-- If you want to connect to a particular server, specify the
  266. agentId
  267. -->
  268. <!-- <jmx agentId="myAgent" /> -->
  269. <!-- If you want to start a new MBeanServer, specify the serviceUrl -->
  270. <!-- <jmx serviceUrl="service:jmx:rmi:///jndi/rmi://localhost:9999/solr"/>
  271. -->
  272. <!-- The default high-performance update handler -->
  273. <updateHandler class="solr.DirectUpdateHandler2">
  274. <!-- AutoCommit
  275. Perform a <commit/> automatically under certain conditions.
  276. Instead of enabling autoCommit, consider using "commitWithin"
  277. when adding documents.
  278. http://wiki.apache.org/solr/UpdateXmlMessages
  279. maxDocs - Maximum number of documents to add since the last
  280. commit before automatically triggering a new commit.
  281. maxTime - Maximum amount of time that is allowed to pass
  282. since a document was added before automaticly
  283. triggering a new commit.
  284. -->
  285. <autoCommit>
  286. <maxDocs>${solr.autoCommit.MaxDocs:10000}</maxDocs>
  287. <maxTime>${solr.autoCommit.MaxTime:120000}</maxTime>
  288. </autoCommit>
  289. <!-- softAutoCommit is like autoCommit except it causes a
  290. 'soft' commit which only ensures that changes are visible
  291. but does not ensure that data is synced to disk. This is
  292. faster and more near-realtime friendly than a hard commit.
  293. -->
  294. <autoSoftCommit>
  295. <maxDocs>${solr.autoSoftCommit.MaxDocs:2000}</maxDocs>
  296. <maxTime>${solr.autoSoftCommit.MaxTime:10000}</maxTime>
  297. </autoSoftCommit>
  298. <!-- Update Related Event Listeners
  299. Various IndexWriter related events can trigger Listeners to
  300. take actions.
  301. postCommit - fired after every commit or optimize command
  302. postOptimize - fired after every optimize command
  303. -->
  304. <!-- The RunExecutableListener executes an external command from a
  305. hook such as postCommit or postOptimize.
  306. exe - the name of the executable to run
  307. dir - dir to use as the current working directory. (default=".")
  308. wait - the calling thread waits until the executable returns.
  309. (default="true")
  310. args - the arguments to pass to the program. (default is none)
  311. env - environment variables to set. (default is none)
  312. -->
  313. <!-- This example shows how RunExecutableListener could be used
  314. with the script based replication...
  315. http://wiki.apache.org/solr/CollectionDistribution
  316. -->
  317. <!--
  318. <listener event="postCommit" class="solr.RunExecutableListener">
  319. <str name="exe">solr/bin/snapshooter</str>
  320. <str name="dir">.</str>
  321. <bool name="wait">true</bool>
  322. <arr name="args"> <str>arg1</str> <str>arg2</str> </arr>
  323. <arr name="env"> <str>MYVAR=val1</str> </arr>
  324. </listener>
  325. -->
  326. <!-- Enables a transaction log, currently used for real-time get.
  327. "dir" - the target directory for transaction logs, defaults to the
  328. solr data directory. -->
  329. <updateLog>
  330. <str name="dir">${solr.data.dir:}</str>
  331. <!-- if you want to take control of the synchronization you may specify
  332. the syncLevel as one of the following where ''flush'' is the default.
  333. Fsync will reduce throughput.
  334. <str name="syncLevel">flush|fsync|none</str>
  335. -->
  336. </updateLog>
  337. </updateHandler>
  338. <!-- IndexReaderFactory
  339. Use the following format to specify a custom IndexReaderFactory,
  340. which allows for alternate IndexReader implementations.
  341. ** Experimental Feature **
  342. Please note - Using a custom IndexReaderFactory may prevent
  343. certain other features from working. The API to
  344. IndexReaderFactory may change without warning or may even be
  345. removed from future releases if the problems cannot be
  346. resolved.
  347. ** Features that may not work with custom IndexReaderFactory **
  348. The ReplicationHandler assumes a disk-resident index. Using a
  349. custom IndexReader implementation may cause incompatibility
  350. with ReplicationHandler and may cause replication to not work
  351. correctly. See SOLR-1366 for details.
  352. -->
  353. <!--
  354. <indexReaderFactory name="IndexReaderFactory" class="package.class">
  355. <str name="someArg">Some Value</str>
  356. </indexReaderFactory >
  357. -->
  358. <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  359. Query section - these settings control query time things like caches
  360. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
  361. <query>
  362. <!-- Max Boolean Clauses
  363. Maximum number of clauses in each BooleanQuery, an exception
  364. is thrown if exceeded.
  365. ** WARNING **
  366. This option actually modifies a global Lucene property that
  367. will affect all SolrCores. If multiple solrconfig.xml files
  368. disagree on this property, the value at any given moment will
  369. be based on the last SolrCore to be initialized.
  370. -->
  371. <maxBooleanClauses>1024</maxBooleanClauses>
  372. <!-- Slow Query Threshold (in millis)
  373. At high request rates, logging all requests can become a bottleneck
  374. and therefore INFO logging is often turned off. However, it is still
  375. useful to be able to set a latency threshold above which a request
  376. is considered "slow" and log that request at WARN level so we can
  377. easily identify slow queries.
  378. -->
  379. <slowQueryThresholdMillis>-1</slowQueryThresholdMillis>
  380. <!-- Solr Internal Query Caches
  381. There are two implementations of cache available for Solr,
  382. LRUCache, based on a synchronized LinkedHashMap, and
  383. FastLRUCache, based on a ConcurrentHashMap.
  384. FastLRUCache has faster gets and slower puts in single
  385. threaded operation and thus is generally faster than LRUCache
  386. when the hit ratio of the cache is high (> 75%), and may be
  387. faster under other scenarios on multi-cpu systems.
  388. -->
  389. <!-- Filter Cache
  390. Cache used by SolrIndexSearcher for filters (DocSets),
  391. unordered sets of *all* documents that match a query. When a
  392. new searcher is opened, its caches may be prepopulated or
  393. "autowarmed" using data from caches in the old searcher.
  394. autowarmCount is the number of items to prepopulate. For
  395. LRUCache, the autowarmed items will be the most recently
  396. accessed items.
  397. Parameters:
  398. class - the SolrCache implementation LRUCache or
  399. (LRUCache or FastLRUCache)
  400. size - the maximum number of entries in the cache
  401. initialSize - the initial capacity (number of entries) of
  402. the cache. (see java.util.HashMap)
  403. autowarmCount - the number of entries to prepopulate from
  404. and old cache.
  405. -->
  406. <filterCache class="solr.FastLRUCache"
  407. size="512"
  408. initialSize="512"
  409. autowarmCount="0"/>
  410. <!-- Query Result Cache
  411. Caches results of searches - ordered lists of document ids
  412. (DocList) based on a query, a sort, and the range of documents requested.
  413. -->
  414. <queryResultCache class="solr.LRUCache"
  415. size="512"
  416. initialSize="512"
  417. autowarmCount="32"/>
  418. <!-- Document Cache
  419. Caches Lucene Document objects (the stored fields for each
  420. document). Since Lucene internal document ids are transient,
  421. this cache will not be autowarmed.
  422. -->
  423. <documentCache class="solr.LRUCache"
  424. size="512"
  425. initialSize="512"
  426. autowarmCount="0"/>
  427. <!-- Field Value Cache
  428. Cache used to hold field values that are quickly accessible
  429. by document id. The fieldValueCache is created by default
  430. even if not configured here.
  431. -->
  432. <!--
  433. <fieldValueCache class="solr.FastLRUCache"
  434. size="512"
  435. autowarmCount="128"
  436. showItems="32" />
  437. -->
  438. <!-- Custom Cache
  439. Example of a generic cache. These caches may be accessed by
  440. name through SolrIndexSearcher.getCache(),cacheLookup(), and
  441. cacheInsert(). The purpose is to enable easy caching of
  442. user/application level data. The regenerator argument should
  443. be specified as an implementation of solr.CacheRegenerator
  444. if autowarming is desired.
  445. -->
  446. <!--
  447. <cache name="myUserCache"
  448. class="solr.LRUCache"
  449. size="4096"
  450. initialSize="1024"
  451. autowarmCount="1024"
  452. regenerator="com.mycompany.MyRegenerator"
  453. />
  454. -->
  455. <!-- Lazy Field Loading
  456. If true, stored fields that are not requested will be loaded
  457. lazily. This can result in a significant speed improvement
  458. if the usual case is to not load all stored fields,
  459. especially if the skipped fields are large compressed text
  460. fields.
  461. -->
  462. <enableLazyFieldLoading>true</enableLazyFieldLoading>
  463. <!-- Use Filter For Sorted Query
  464. A possible optimization that attempts to use a filter to
  465. satisfy a search. If the requested sort does not include
  466. score, then the filterCache will be checked for a filter
  467. matching the query. If found, the filter will be used as the
  468. source of document ids, and then the sort will be applied to
  469. that.
  470. For most situations, this will not be useful unless you
  471. frequently get the same search repeatedly with different sort
  472. options, and none of them ever use "score"
  473. -->
  474. <!--
  475. <useFilterForSortedQuery>true</useFilterForSortedQuery>
  476. -->
  477. <!-- Result Window Size
  478. An optimization for use with the queryResultCache. When a search
  479. is requested, a superset of the requested number of document ids
  480. are collected. For example, if a search for a particular query
  481. requests matching documents 10 through 19, and queryWindowSize is 50,
  482. then documents 0 through 49 will be collected and cached. Any further
  483. requests in that range can be satisfied via the cache.
  484. -->
  485. <queryResultWindowSize>20</queryResultWindowSize>
  486. <!-- Maximum number of documents to cache for any entry in the
  487. queryResultCache.
  488. -->
  489. <queryResultMaxDocsCached>200</queryResultMaxDocsCached>
  490. <!-- Query Related Event Listeners
  491. Various IndexSearcher related events can trigger Listeners to
  492. take actions.
  493. newSearcher - fired whenever a new searcher is being prepared
  494. and there is a current searcher handling requests (aka
  495. registered). It can be used to prime certain caches to
  496. prevent long request times for certain requests.
  497. firstSearcher - fired whenever a new searcher is being
  498. prepared but there is no current registered searcher to handle
  499. requests or to gain autowarming data from.
  500. -->
  501. <!-- QuerySenderListener takes an array of NamedList and executes a
  502. local query request for each NamedList in sequence.
  503. -->
  504. <listener event="newSearcher" class="solr.QuerySenderListener">
  505. <arr name="queries">
  506. <!--
  507. <lst><str name="q">solr</str><str name="sort">price asc</str></lst>
  508. <lst><str name="q">rocks</str><str name="sort">weight asc</str></lst>
  509. -->
  510. </arr>
  511. </listener>
  512. <listener event="firstSearcher" class="solr.QuerySenderListener">
  513. <arr name="queries">
  514. <lst>
  515. <str name="q">solr rocks</str><str name="start">0</str><str name="rows">10</str>
  516. </lst>
  517. </arr>
  518. </listener>
  519. <!-- Use Cold Searcher
  520. If a search request comes in and there is no current
  521. registered searcher, then immediately register the still
  522. warming searcher and use it. If "false" then all requests
  523. will block until the first searcher is done warming.
  524. -->
  525. <useColdSearcher>false</useColdSearcher>
  526. <!-- Max Warming Searchers
  527. Maximum number of searchers that may be warming in the
  528. background concurrently. An error is returned if this limit
  529. is exceeded.
  530. Recommend values of 1-2 for read-only slaves, higher for
  531. masters w/o cache warming.
  532. -->
  533. <maxWarmingSearchers>2</maxWarmingSearchers>
  534. </query>
  535. <!-- Request Dispatcher
  536. This section contains instructions for how the SolrDispatchFilter
  537. should behave when processing requests for this SolrCore.
  538. handleSelect affects the behavior of requests such as /select?qt=XXX
  539. handleSelect="true" will cause the SolrDispatchFilter to process
  540. the request and will result in consistent error handling and
  541. formatting for all types of requests.
  542. handleSelect="false" will cause the SolrDispatchFilter to
  543. ignore "/select" requests and fallback to using the legacy
  544. SolrServlet and it's Solr 1.1 style error formatting
  545. -->
  546. <requestDispatcher handleSelect="true" >
  547. <!-- Request Parsing
  548. These settings indicate how Solr Requests may be parsed, and
  549. what restrictions may be placed on the ContentStreams from
  550. those requests
  551. enableRemoteStreaming - enables use of the stream.file
  552. and stream.url parameters for specifying remote streams.
  553. multipartUploadLimitInKB - specifies the max size (in KiB) of
  554. Multipart File Uploads that Solr will allow in a Request.
  555. formdataUploadLimitInKB - specifies the max size (in KiB) of
  556. form data (application/x-www-form-urlencoded) sent via
  557. POST. You can use POST to pass request parameters not
  558. fitting into the URL.
  559. addHttpRequestToContext - if set to true, it will instruct
  560. the requestParsers to include the original HttpServletRequest
  561. object in the context map of the SolrQueryRequest under the
  562. key "httpRequest". It will not be used by any of the existing
  563. Solr components, but may be useful when developing custom
  564. plugins.
  565. *** WARNING ***
  566. The settings below authorize Solr to fetch remote files, You
  567. should make sure your system has some authentication before
  568. using enableRemoteStreaming="true"
  569. -->
  570. <requestParsers enableRemoteStreaming="true"
  571. multipartUploadLimitInKB="2048000"
  572. formdataUploadLimitInKB="2048"
  573. addHttpRequestToContext="false"/>
  574. <!-- HTTP Caching
  575. Set HTTP caching related parameters (for proxy caches and clients).
  576. The options below instruct Solr not to output any HTTP Caching
  577. related headers
  578. -->
  579. <httpCaching never304="true" />
  580. <!-- If you include a <cacheControl> directive, it will be used to
  581. generate a Cache-Control header (as well as an Expires header
  582. if the value contains "max-age=")
  583. By default, no Cache-Control header is generated.
  584. You can use the <cacheControl> option even if you have set
  585. never304="true"
  586. -->
  587. <!--
  588. <httpCaching never304="true" >
  589. <cacheControl>max-age=30, public</cacheControl>
  590. </httpCaching>
  591. -->
  592. <!-- To enable Solr to respond with automatically generated HTTP
  593. Caching headers, and to response to Cache Validation requests
  594. correctly, set the value of never304="false"
  595. This will cause Solr to generate Last-Modified and ETag
  596. headers based on the properties of the Index.
  597. The following options can also be specified to affect the
  598. values of these headers...
  599. lastModFrom - the default value is "openTime" which means the
  600. Last-Modified value (and validation against If-Modified-Since
  601. requests) will all be relative to when the current Searcher
  602. was opened. You can change it to lastModFrom="dirLastMod" if
  603. you want the value to exactly correspond to when the physical
  604. index was last modified.
  605. etagSeed="..." is an option you can change to force the ETag
  606. header (and validation against If-None-Match requests) to be
  607. different even if the index has not changed (ie: when making
  608. significant changes to your config file)
  609. (lastModifiedFrom and etagSeed are both ignored if you use
  610. the never304="true" option)
  611. -->
  612. <!--
  613. <httpCaching lastModifiedFrom="openTime"
  614. etagSeed="Solr">
  615. <cacheControl>max-age=30, public</cacheControl>
  616. </httpCaching>
  617. -->
  618. </requestDispatcher>
  619. <!-- Request Handlers
  620. http://wiki.apache.org/solr/SolrRequestHandler
  621. Incoming queries will be dispatched to a specific handler by name
  622. based on the path specified in the request.
  623. Legacy behavior: If the request path uses "/select" but no Request
  624. Handler has that name, and if handleSelect="true" has been specified in
  625. the requestDispatcher, then the Request Handler is dispatched based on
  626. the qt parameter. Handlers without a leading '/' are accessed this way
  627. like so: http://host/app/[core/]select?qt=name If no qt is
  628. given, then the requestHandler that declares default="true" will be
  629. used or the one named "standard".
  630. If a Request Handler is declared with startup="lazy", then it will
  631. not be initialized until the first request that uses it.
  632. -->
  633. <!-- SearchHandler
  634. http://wiki.apache.org/solr/SearchHandler
  635. For processing Search Queries, the primary Request Handler
  636. provided with Solr is "SearchHandler" It delegates to a sequent
  637. of SearchComponents (see below) and supports distributed
  638. queries across multiple shards
  639. -->
  640. <!--<requestHandler name="/select" class="solr.SearchHandler">-->
  641. <!-- default values for query parameters can be specified, these
  642. will be overridden by parameters in the request
  643. -->
  644. <!--<lst name="defaults">
  645. <str name="echoParams">explicit</str>
  646. <int name="rows">10</int>
  647. </lst>-->
  648. <!-- In addition to defaults, "appends" params can be specified
  649. to identify values which should be appended to the list of
  650. multi-val params from the query (or the existing "defaults").
  651. -->
  652. <!-- In this example, the param "fq=instock:true" would be appended to
  653. any query time fq params the user may specify, as a mechanism for
  654. partitioning the index, independent of any user selected filtering
  655. that may also be desired (perhaps as a result of faceted searching).
  656. NOTE: there is *absolutely* nothing a client can do to prevent these
  657. "appends" values from being used, so don't use this mechanism
  658. unless you are sure you always want it.
  659. -->
  660. <!--
  661. <lst name="appends">
  662. <str name="fq">inStock:true</str>
  663. </lst>
  664. -->
  665. <!-- "invariants" are a way of letting the Solr maintainer lock down
  666. the options available to Solr clients. Any params values
  667. specified here are used regardless of what values may be specified
  668. in either the query, the "defaults", or the "appends" params.
  669. In this example, the facet.field and facet.query params would
  670. be fixed, limiting the facets clients can use. Faceting is
  671. not turned on by default - but if the client does specify
  672. facet=true in the request, these are the only facets they
  673. will be able to see counts for; regardless of what other
  674. facet.field or facet.query params they may specify.
  675. NOTE: there is *absolutely* nothing a client can do to prevent these
  676. "invariants" values from being used, so don't use this mechanism
  677. unless you are sure you always want it.
  678. -->
  679. <!--
  680. <lst name="invariants">
  681. <str name="facet.field">cat</str>
  682. <str name="facet.field">manu_exact</str>
  683. <str name="facet.query">price:[* TO 500]</str>
  684. <str name="facet.query">price:[500 TO *]</str>
  685. </lst>
  686. -->
  687. <!-- If the default list of SearchComponents is not desired, that
  688. list can either be overridden completely, or components can be
  689. prepended or appended to the default list. (see below)
  690. -->
  691. <!--
  692. <arr name="components">
  693. <str>nameOfCustomComponent1</str>
  694. <str>nameOfCustomComponent2</str>
  695. </arr>
  696. -->
  697. <!--</requestHandler>-->
  698. <!-- A request handler that returns indented JSON by default -->
  699. <requestHandler name="/query" class="solr.SearchHandler">
  700. <lst name="defaults">
  701. <str name="echoParams">explicit</str>
  702. <str name="wt">json</str>
  703. <str name="indent">true</str>
  704. <str name="df">text</str>
  705. </lst>
  706. </requestHandler>
  707. <!--
  708. The export request handler is used to export full sorted result sets.
  709. Do not change these defaults.
  710. -->
  711. <requestHandler name="/export" class="solr.SearchHandler">
  712. <lst name="invariants">
  713. <str name="rq">{!xport}</str>
  714. <str name="wt">xsort</str>
  715. <str name="distrib">false</str>
  716. </lst>
  717. <arr name="components">
  718. <str>query</str>
  719. </arr>
  720. </requestHandler>
  721. <!-- A Robust Example
  722. This example SearchHandler declaration shows off usage of the
  723. SearchHandler with many defaults declared
  724. Note that multiple instances of the same Request Handler
  725. (SearchHandler) can be registered multiple times with different
  726. names (and different init parameters)
  727. -->
  728. <!--
  729. <requestHandler name="/browse" class="solr.SearchHandler">
  730. <lst name="defaults">
  731. <str name="echoParams">explicit</str>-->
  732. <!-- VelocityResponseWriter settings -->
  733. <!--<str name="wt">velocity</str>
  734. <str name="v.template">browse</str>
  735. <str name="v.layout">layout</str>
  736. <str name="title">Solritas</str>
  737. <str name="defType">edismax</str>
  738. <str name="qf">
  739. text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4
  740. title^10.0 description^5.0 keywords^5.0 author^2.0 resourcename^1.0
  741. </str>
  742. <str name="mm">100%</str>
  743. <str name="q.alt">*:*</str>
  744. <str name="rows">10</str>
  745. <str name="fl">*,score</str>
  746. <str name="mlt.qf">
  747. text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4
  748. </str>
  749. <str name="mlt.fl">text,features,name,sku,id,manu,cat</str>
  750. <int name="mlt.count">3</int>
  751. <str name="qf">
  752. text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4
  753. </str>
  754. <str name="facet">on</str>
  755. <str name="facet.field">cat</str>
  756. <str name="facet.field">manu_exact</str>
  757. <str name="facet.query">ipod</str>
  758. <str name="facet.query">GB</str>
  759. <str name="facet.mincount">1</str>
  760. <str name="facet.pivot">cat,inStock</str>
  761. <str name="facet.range.other">after</str>
  762. <str name="facet.range">price</str>
  763. <int name="f.price.facet.range.start">0</int>
  764. <int name="f.price.facet.range.end">600</int>
  765. <int name="f.price.facet.range.gap">50</int>
  766. <str name="facet.range">popularity</str>
  767. <int name="f.popularity.facet.range.start">0</int>
  768. <int name="f.popularity.facet.range.end">10</int>
  769. <int name="f.popularity.facet.range.gap">3</int>
  770. <str name="facet.range">manufacturedate_dt</str>
  771. <str name="f.manufacturedate_dt.facet.range.start">NOW/YEAR-10YEARS</str>
  772. <str name="f.manufacturedate_dt.facet.range.end">NOW</str>
  773. <str name="f.manufacturedate_dt.facet.range.gap">+1YEAR</str>
  774. <str name="f.manufacturedate_dt.facet.range.other">before</str>
  775. <str name="f.manufacturedate_dt.facet.range.other">after</str>-->
  776. <!-- Highlighting defaults -->
  777. <!--<str name="hl">on</str>
  778. <str name="hl.fl">text features name</str>
  779. <str name="f.name.hl.fragsize">0</str>
  780. <str name="f.name.hl.alternateField">name</str>
  781. </lst>
  782. <arr name="last-components">
  783. <str>spellcheck</str>
  784. </arr>-->
  785. <!--
  786. <str name="url-scheme">httpx</str>
  787. -->
  788. <!--</requestHandler>-->
  789. <!-- trivia: the name pinkPony requestHandler was an agreement between the Search API and the
  790. apachesolr maintainers. The decision was taken during the Drupalcon Munich codesprint.
  791. -->
  792. <requestHandler name="pinkPony" class="solr.SearchHandler" default="true">
  793. <lst name="defaults">
  794. <str name="defType">edismax</str>
  795. <str name="df">content</str>
  796. <str name="echoParams">explicit</str>
  797. <bool name="omitHeader">true</bool>
  798. <float name="tie">0.01</float>
  799. <!-- Don't abort searches for the pinkPony request handler (set in solrcore.properties) -->
  800. <int name="timeAllowed">${solr.pinkPony.timeAllowed:-1}</int>
  801. <str name="q.alt">*:*</str>
  802. <!-- By default, don't spell check -->
  803. <str name="spellcheck">false</str>
  804. <!-- Defaults for the spell checker when used -->
  805. <str name="spellcheck.onlyMorePopular">true</str>
  806. <str name="spellcheck.extendedResults">false</str>
  807. <!-- The number of suggestions to return -->
  808. <str name="spellcheck.count">1</str>
  809. </lst>
  810. <arr name="last-components">
  811. <str>spellcheck</str>
  812. <str>elevator</str>
  813. </arr>
  814. </requestHandler>
  815. <!-- The more like this handler offers many advantages over the standard handler,
  816. when performing moreLikeThis requests.-->
  817. <requestHandler name="mlt" class="solr.MoreLikeThisHandler">
  818. <lst name="defaults">
  819. <str name="df">content</str>
  820. <str name="mlt.mintf">1</str>
  821. <str name="mlt.mindf">1</str>
  822. <str name="mlt.minwl">3</str>
  823. <str name="mlt.maxwl">15</str>
  824. <str name="mlt.maxqt">20</str>
  825. <str name="mlt.match.include">false</str>
  826. <!-- Abort any searches longer than 2 seconds (set in solrcore.properties) -->
  827. <int name="timeAllowed">${solr.mlt.timeAllowed:2000}</int>
  828. </lst>
  829. </requestHandler>
  830. <!-- A minimal query type for doing luene queries -->
  831. <requestHandler name="standard" class="solr.SearchHandler">
  832. <lst name="defaults">
  833. <str name="df">content</str>
  834. <str name="echoParams">explicit</str>
  835. <bool name="omitHeader">true</bool>
  836. </lst>
  837. </requestHandler>
  838. <!-- Update Request Handler.
  839. http://wiki.apache.org/solr/UpdateXmlMessages
  840. The canonical Request Handler for Modifying the Index through
  841. commands specified using XML, JSON, CSV, or JAVABIN
  842. Note: Since solr1.1 requestHandlers requires a valid content
  843. type header if posted in the body. For example, curl now
  844. requires: -H 'Content-type:text/xml; charset=utf-8'
  845. To override the request content type and force a specific
  846. Content-type, use the request parameter:
  847. ?update.contentType=text/csv
  848. This handler will pick a response format to match the input
  849. if the 'wt' parameter is not explicit
  850. -->
  851. <!--<requestHandler name="/update" class="solr.UpdateRequestHandler">
  852. </requestHandler>-->
  853. <initParams path="/update/**,/query,/select,/tvrh,/elevate,/spell,/browse">
  854. <lst name="defaults">
  855. <str name="df">text</str>
  856. </lst>
  857. </initParams>
  858. <initParams path="/update/json/docs">
  859. <lst name="defaults">
  860. <!--this ensures that the entire json doc will be stored verbatim into one field-->
  861. <str name="srcField">_src_</str>
  862. <!--This means a the uniqueKeyField will be extracted from the fields and
  863. all fields go into the 'df' field. In this config df is already configured to be 'text'
  864. -->
  865. <str name="mapUniqueKeyOnly">true</str>
  866. </lst>
  867. </initParams>
  868. <!-- CSV Update Request Handler
  869. http://wiki.apache.org/solr/UpdateCSV
  870. -->
  871. <requestHandler name="/update/csv"
  872. class="solr.CSVRequestHandler"
  873. startup="lazy" />
  874. <!-- JSON Update Request Handler
  875. http://wiki.apache.org/solr/UpdateJSON
  876. -->
  877. <requestHandler name="/update/json"
  878. class="solr.JsonUpdateRequestHandler"
  879. startup="lazy" />
  880. <!-- Solr Cell Update Request Handler
  881. http://wiki.apache.org/solr/ExtractingRequestHandler
  882. -->
  883. <requestHandler name="/update/extract"
  884. startup="lazy"
  885. class="solr.extraction.ExtractingRequestHandler" >
  886. <lst name="defaults">
  887. <!-- All the main content goes into "text"... if you need to return
  888. the extracted text or do highlighting, use a stored field. -->
  889. <str name="fmap.content">text</str>
  890. <str name="lowernames">true</str>
  891. <str name="uprefix">ignored_</str>
  892. <!-- capture link hrefs but ignore div attributes -->
  893. <str name="captureAttr">true</str>
  894. <str name="fmap.a">links</str>
  895. <str name="fmap.div">ignored_</str>
  896. </lst>
  897. </requestHandler>
  898. <!-- XSLT Update Request Handler
  899. Transforms incoming XML with stylesheet identified by tr=
  900. -->
  901. <requestHandler name="/update/xslt"
  902. startup="lazy"
  903. class="solr.XsltUpdateRequestHandler"/>
  904. <!-- Field Analysis Request Handler
  905. RequestHandler that provides much the same functionality as
  906. analysis.jsp. Provides the ability to specify multiple field
  907. types and field names in the same request and outputs
  908. index-time and query-time analysis for each of them.
  909. Request parameters are:
  910. analysis.fieldname - field name whose analyzers are to be used
  911. analysis.fieldtype - field type whose analyzers are to be used
  912. analysis.fieldvalue - text for index-time analysis
  913. q (or analysis.q) - text for query time analysis
  914. analysis.showmatch (true|false) - When set to true and when
  915. query analysis is performed, the produced tokens of the
  916. field value analysis will be marked as "matched" for every
  917. token that is produces by the query analysis
  918. -->
  919. <requestHandler name="/analysis/field"
  920. startup="lazy"
  921. class="solr.FieldAnalysisRequestHandler" />
  922. <!-- Document Analysis Handler
  923. http://wiki.apache.org/solr/AnalysisRequestHandler
  924. An analysis handler that provides a breakdown of the analysis
  925. process of provided documents. This handler expects a (single)
  926. content stream with the following format:
  927. <docs>
  928. <doc>
  929. <field name="id">1</field>
  930. <field name="name">The Name</field>
  931. <field name="text">The Text Value</field>
  932. </doc>
  933. <doc>...</doc>
  934. <doc>...</doc>
  935. ...
  936. </docs>
  937. Note: Each document must contain a field which serves as the
  938. unique key. This key is used in the returned response to associate
  939. an analysis breakdown to the analyzed document.
  940. Like the FieldAnalysisRequestHandler, this handler also supports
  941. query analysis by sending either an "analysis.query" or "q"
  942. request parameter that holds the query text to be analyzed. It
  943. also supports the "analysis.showmatch" parameter which when set to
  944. true, all field tokens that match the query tokens will be marked
  945. as a "match".
  946. -->
  947. <requestHandler name="/analysis/document"
  948. class="solr.DocumentAnalysisRequestHandler"
  949. startup="lazy" />
  950. <!-- Admin Handlers
  951. As of Solr 5.0.0, the "/admin/" handlers are registered implicitly.
  952. -->
  953. <!-- <requestHandler name="/admin/" class="solr.admin.AdminHandlers" /> -->
  954. <!-- This single handler is equivalent to the following... -->
  955. <!--
  956. <requestHandler name="/admin/luke" class="solr.admin.LukeRequestHandler" />
  957. <requestHandler name="/admin/system" class="solr.admin.SystemInfoHandler" />
  958. <requestHandler name="/admin/plugins" class="solr.admin.PluginInfoHandler" />
  959. <requestHandler name="/admin/threads" class="solr.admin.ThreadDumpHandler" />
  960. <requestHandler name="/admin/properties" class="solr.admin.PropertiesRequestHandler" />
  961. <requestHandler name="/admin/file" class="solr.admin.ShowFileRequestHandler" >
  962. -->
  963. <!-- If you wish to hide files under ${solr.home}/conf, explicitly
  964. register the ShowFileRequestHandler using the definition below.
  965. NOTE: The glob pattern ('*') is the only pattern supported at present, *.xml will
  966. not exclude all files ending in '.xml'. Use it to exclude _all_ updates
  967. -->
  968. <!--
  969. <requestHandler name="/admin/file"
  970. class="solr.admin.ShowFileRequestHandler" >
  971. <lst name="invariants">
  972. <str name="hidden">synonyms.txt</str>
  973. <str name="hidden">anotherfile.txt</str>
  974. <str name="hidden">*</str>
  975. </lst>
  976. </requestHandler>
  977. -->
  978. <!--
  979. Enabling this request handler (which is NOT a default part of the admin handler) will allow the Solr UI to edit
  980. all the config files. This is intended for secure/development use ONLY! Leaving available and publically
  981. accessible is a security vulnerability and should be done with extreme caution!
  982. -->
  983. <!--
  984. <requestHandler name="/admin/fileedit" class="solr.admin.EditFileRequestHandler" >
  985. <lst name="invariants">
  986. <str name="qt">pinkPony</str>
  987. <str name="q">solrpingquery</str>
  988. <str name="omitHeader">false</str>
  989. </lst>
  990. <lst name="defaults">
  991. <str name="echoParams">all</str>
  992. </lst>
  993. <!- An optional feature of the PingRequestHandler is to configure the
  994. handler with a "healthcheckFile" which can be used to enable/disable
  995. the PingRequestHandler.
  996. relative paths are resolved against the data dir
  997. -->
  998. <!-- <str name="healthcheckFile">server-enabled.txt</str> -->
  999. <!-- </requestHandler>
  1000. -->
  1001. <!-- Echo the request contents back to the client -->
  1002. <requestHandler name="/debug/dump" class="solr.DumpRequestHandler" >
  1003. <lst name="defaults">
  1004. <str name="echoParams">explicit</str>
  1005. <str name="echoHandler">true</str>
  1006. </lst>
  1007. </requestHandler>
  1008. <!-- Solr Replication
  1009. The SolrReplicationHandler supports replicating indexes from a
  1010. "master" used for indexing and "slaves" used for queries.
  1011. http://wiki.apache.org/solr/SolrReplication
  1012. In the example below, remove the <lst name="master"> section if
  1013. this is just a slave and remove the <lst name="slave"> section
  1014. if this is just a master.
  1015. -->
  1016. <requestHandler name="/replication" class="solr.ReplicationHandler" >
  1017. <lst name="master">
  1018. <str name="enable">${solr.replication.master:false}</str>
  1019. <str name="replicateAfter">commit</str>
  1020. <str name="replicateAfter">startup</str>
  1021. <str name="confFiles">${solr.replication.confFiles:schema.xml,mapping-ISOLatin1Accent.txt,protwords.txt,stopwords.txt,synonyms.txt,elevate.xml}</str>
  1022. </lst>
  1023. <lst name="slave">
  1024. <str name="enable">${solr.replication.slave:false}</str>
  1025. <str name="masterUrl">${solr.replication.masterUrl:http://localhost:8983/solr}/replication</str>
  1026. <str name="pollInterval">${solr.replication.pollInterval:00:00:60}</str>
  1027. </lst>
  1028. </requestHandler>
  1029. <!-- Realtime get handler, guaranteed to return the latest stored fields of
  1030. any document, without the need to commit or open a new searcher. The
  1031. current implementation relies on the updateLog feature being enabled.
  1032. -->
  1033. <requestHandler name="/get" class="solr.RealTimeGetHandler">
  1034. <lst name="defaults">
  1035. <str name="omitHeader">true</str>
  1036. <str name="wt">json</str>
  1037. <str name="indent">true</str>
  1038. </lst>
  1039. </requestHandler>
  1040. <!-- Search Components
  1041. Search components are registered to SolrCore and used by
  1042. instances of SearchHandler (which can access them by name)
  1043. By default, the following components are available:
  1044. <searchComponent name="query" class="solr.QueryComponent" />
  1045. <searchComponent name="facet" class="solr.FacetComponent" />
  1046. <searchComponent name="mlt" class="solr.MoreLikeThisComponent" />
  1047. <searchComponent name="highlight" class="solr.HighlightComponent" />
  1048. <searchComponent name="stats" class="solr.StatsComponent" />
  1049. <searchComponent name="debug" class="solr.DebugComponent" />
  1050. Default configuration in a requestHandler would look like:
  1051. <arr name="components">
  1052. <str>query</str>
  1053. <str>facet</str>
  1054. <str>mlt</str>
  1055. <str>highlight</str>
  1056. <str>stats</str>
  1057. <str>debug</str>
  1058. </arr>
  1059. If you register a searchComponent to one of the standard names,
  1060. that will be used instead of the default.
  1061. To insert components before or after the 'standard' components, use:
  1062. <arr name="first-components">
  1063. <str>myFirstComponentName</str>
  1064. </arr>
  1065. <arr name="last-components">
  1066. <str>myLastComponentName</str>
  1067. </arr>
  1068. NOTE: The component registered with the name "debug" will
  1069. always be executed after the "last-components"
  1070. -->
  1071. <!-- A request handler for demonstrating the spellcheck component.
  1072. NOTE: This is purely as an example. The whole purpose of the
  1073. SpellCheckComponent is to hook it into the request handler that
  1074. handles your normal user queries so that a separate request is
  1075. not needed to get suggestions.
  1076. IN OTHER WORDS, THERE IS REALLY GOOD CHANCE THE SETUP BELOW IS
  1077. NOT WHAT YOU WANT FOR YOUR PRODUCTION SYSTEM!
  1078. See http://wiki.apache.org/solr/SpellCheckComponent for details
  1079. on the request parameters.
  1080. -->
  1081. <requestHandler name="/spell" class="solr.SearchHandler" startup="lazy">
  1082. <lst name="defaults">
  1083. <!-- Solr will use suggestions from both the 'default' spellchecker
  1084. and from the 'wordbreak' spellchecker and combine them.
  1085. collations (re-written queries) can include a combination of
  1086. corrections from both spellcheckers -->
  1087. <str name="spellcheck.dictionary">default</str>
  1088. <str name="spellcheck.dictionary">wordbreak</str>
  1089. <str name="spellcheck.onlyMorePopular">false</str>
  1090. <str name="spellcheck.extendedResults">false</str>
  1091. <str name="spellcheck.count">1</str>
  1092. <str name="spellcheck.alternativeTermCount">5</str>
  1093. <str name="spellcheck.maxResultsForSuggest">5</str>
  1094. <str name="spellcheck.collate">true</str>
  1095. <str name="spellcheck.collateExtendedResults">true</str>
  1096. <str name="spellcheck.maxCollationTries">10</str>
  1097. <str name="spellcheck.maxCollations">5</str>
  1098. </lst>
  1099. <arr name="last-components">
  1100. <str>spellcheck</str>
  1101. </arr>
  1102. </requestHandler>
  1103. <!-- This is disabled by default because it currently causes long startup times on
  1104. big indexes, even when never used. See SOLR-6679 for background.
  1105. To use this suggester, set the "solr.suggester.enabled=true" system property
  1106. -->
  1107. <searchComponent name="suggest" class="solr.SuggestComponent"
  1108. enable="${solr.suggester.enabled:false}" >
  1109. <lst name="suggester">
  1110. <str name="name">mySuggester</str>
  1111. <str name="lookupImpl">FuzzyLookupFactory</str>
  1112. <str name="dictionaryImpl">DocumentDictionaryFactory</str>
  1113. <str name="field">cat</str>
  1114. <str name="weightField">price</str>
  1115. <str name="suggestAnalyzerFieldType">string</str>
  1116. </lst>
  1117. </searchComponent>
  1118. <requestHandler name="/suggest" class="solr.SearchHandler"
  1119. startup="lazy" enable="${solr.suggester.enabled:false}" >
  1120. <lst name="defaults">
  1121. <str name="suggest">true</str>
  1122. <str name="suggest.count">10</str>
  1123. </lst>
  1124. <arr name="components">
  1125. <str>suggest</str>
  1126. </arr>
  1127. </requestHandler>
  1128. <!-- Term Vector Component
  1129. http://wiki.apache.org/solr/TermVectorComponent
  1130. -->
  1131. <searchComponent name="tvComponent" class="solr.TermVectorComponent"/>
  1132. <!-- A request handler for demonstrating the term vector component
  1133. This is purely as an example.
  1134. In reality you will likely want to add the component to your
  1135. already specified request handlers.
  1136. -->
  1137. <requestHandler name="/tvrh" class="solr.SearchHandler" startup="lazy">
  1138. <lst name="defaults">
  1139. <bool name="tv">true</bool>
  1140. </lst>
  1141. <arr name="last-components">
  1142. <str>tvComponent</str>
  1143. </arr>
  1144. </requestHandler>
  1145. <!-- Clustering Component
  1146. http://wiki.apache.org/solr/ClusteringComponent
  1147. This relies on third party jars which are notincluded in the
  1148. release. To use this component (and the "/clustering" handler)
  1149. Those jars will need to be downloaded, and you'll need to set
  1150. the solr.cluster.enabled system property when running solr...
  1151. java -Dsolr.clustering.enabled=true -jar start.jar
  1152. -->
  1153. <!-- <searchComponent name="clustering"
  1154. enable="${solr.clustering.enabled:false}"
  1155. class="solr.clustering.ClusteringComponent" > -->
  1156. <!-- Declare an engine -->
  1157. <!--<lst name="engine">-->
  1158. <!-- The name, only one can be named "default" -->
  1159. <!--<str name="name">default</str>-->
  1160. <!-- Class name of Carrot2 clustering algorithm.
  1161. Currently available algorithms are:
  1162. * org.carrot2.clustering.lingo.LingoClusteringAlgorithm
  1163. * org.carrot2.clustering.stc.STCClusteringAlgorithm
  1164. * org.carrot2.clustering.kmeans.BisectingKMeansClusteringAlgorithm
  1165. See http://project.carrot2.org/algorithms.html for the
  1166. algorithm's characteristics.
  1167. -->
  1168. <!--<str name="carrot.algorithm">org.carrot2.clustering.lingo.LingoClusteringAlgorithm</str>-->
  1169. <!-- Overriding values for Carrot2 default algorithm attributes.
  1170. For a description of all available attributes, see:
  1171. http://download.carrot2.org/stable/manual/#chapter.components.
  1172. Use attribute key as name attribute of str elements
  1173. below. These can be further overridden for individual
  1174. requests by specifying attribute key as request parameter
  1175. name and attribute value as parameter value.
  1176. -->
  1177. <!--<str name="LingoClusteringAlgorithm.desiredClusterCountBase">20</str>-->
  1178. <!-- Location of Carrot2 lexical resources.
  1179. A directory from which to load Carrot2-specific stop words
  1180. and stop labels. Absolute or relative to Solr config directory.
  1181. If a specific resource (e.g. stopwords.en) is present in the
  1182. specified dir, it will completely override the corresponding
  1183. default one that ships with Carrot2.
  1184. For an overview of Carrot2 lexical resources, see:
  1185. http://download.carrot2.org/head/manual/#chapter.lexical-resources
  1186. -->
  1187. <!--<str name="carrot.lexicalResourcesDir">clustering/carrot2</str>-->
  1188. <!-- The language to assume for the documents.
  1189. For a list of allowed values, see:
  1190. http://download.carrot2.org/stable/manual/#section.attribute.lingo.MultilingualClustering.defaultLanguage
  1191. -->
  1192. <!--<str name="MultilingualClustering.defaultLanguage">ENGLISH</str>
  1193. </lst>
  1194. <lst name="engine">
  1195. <str name="name">stc</str>
  1196. <str name="carrot.algorithm">org.carrot2.clustering.stc.STCClusteringAlgorithm</str>
  1197. </lst>
  1198. </searchComponent>-->
  1199. <!-- A request handler for demonstrating the clustering component
  1200. This is purely as an example.
  1201. In reality you will likely want to add the component to your
  1202. already specified request handlers.
  1203. -->
  1204. <!--<requestHandler name="/clustering"
  1205. startup="lazy"
  1206. enable="${solr.clustering.enabled:false}"
  1207. class="solr.SearchHandler">
  1208. <lst name="defaults">
  1209. <bool name="clustering">true</bool>
  1210. <str name="clustering.engine">default</str>
  1211. <bool name="clustering.results">true</bool>-->
  1212. <!-- The title field -->
  1213. <!--<str name="carrot.title">name</str>-->
  1214. <!--<str name="carrot.url">id</str>-->
  1215. <!-- The field to cluster on -->
  1216. <!--<str name="carrot.snippet">features</str>-->
  1217. <!-- produce summaries -->
  1218. <!--<bool name="carrot.produceSummary">true</bool>-->
  1219. <!-- the maximum number of labels per cluster -->
  1220. <!--<int name="carrot.numDescriptions">5</int>-->
  1221. <!-- produce sub clusters -->
  1222. <!--<bool name="carrot.outputSubClusters">false</bool>-->
  1223. <!--<str name="defType">edismax</str>
  1224. <str name="qf">
  1225. text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4
  1226. </str>
  1227. <str name="q.alt">*:*</str>
  1228. <str name="rows">10</str>
  1229. <str name="fl">*,score</str>
  1230. </lst>
  1231. <arr name="last-components">
  1232. <str>clustering</str>
  1233. </arr>
  1234. </requestHandler>-->
  1235. <!-- Terms Component
  1236. http://wiki.apache.org/solr/TermsComponent
  1237. A component to return terms and document frequency of those
  1238. terms
  1239. -->
  1240. <searchComponent name="terms" class="solr.TermsComponent"/>
  1241. <!-- A request handler for demonstrating the terms component -->
  1242. <requestHandler name="/terms" class="solr.SearchHandler" startup="lazy">
  1243. <lst name="defaults">
  1244. <bool name="terms">true</bool>
  1245. </lst>
  1246. <arr name="components">
  1247. <str>terms</str>
  1248. </arr>
  1249. </requestHandler>
  1250. <!-- Query Elevation Component
  1251. http://wiki.apache.org/solr/QueryElevationComponent
  1252. a search component that enables you to configure the top
  1253. results for a given query regardless of the normal lucene
  1254. scoring.
  1255. -->
  1256. <searchComponent name="elevator" class="solr.QueryElevationComponent" >
  1257. <!-- pick a fieldType to analyze queries -->
  1258. <str name="queryFieldType">string</str>
  1259. <str name="config-file">elevate.xml</str>
  1260. </searchComponent>
  1261. <!-- A request handler for demonstrating the elevator component -->
  1262. <requestHandler name="/elevate" class="solr.SearchHandler" startup="lazy">
  1263. <lst name="defaults">
  1264. <str name="echoParams">explicit</str>
  1265. </lst>
  1266. <arr name="last-components">
  1267. <str>elevator</str>
  1268. </arr>
  1269. </requestHandler>
  1270. <!-- Highlighting Component
  1271. http://wiki.apache.org/solr/HighlightingParameters
  1272. -->
  1273. <searchComponent class="solr.HighlightComponent" name="highlight">
  1274. <highlighting>
  1275. <!-- Configure the standard fragmenter -->
  1276. <!-- This could most likely be commented out in the "default" case -->
  1277. <fragmenter name="gap"
  1278. default="true"
  1279. class="solr.highlight.GapFragmenter">
  1280. <lst name="defaults">
  1281. <int name="hl.fragsize">100</int>
  1282. </lst>
  1283. </fragmenter>
  1284. <!-- A regular-expression-based fragmenter
  1285. (for sentence extraction)
  1286. -->
  1287. <fragmenter name="regex"
  1288. class="solr.highlight.RegexFragmenter">
  1289. <lst name="defaults">
  1290. <!-- slightly smaller fragsizes work better because of slop -->
  1291. <int name="hl.fragsize">70</int>
  1292. <!-- allow 50% slop on fragment sizes -->
  1293. <float name="hl.regex.slop">0.5</float>
  1294. <!-- a basic sentence pattern -->
  1295. <str name="hl.regex.pattern">[-\w ,/\n\&quot;&apos;]{20,200}</str>
  1296. </lst>
  1297. </fragmenter>
  1298. <!-- Configure the standard formatter -->
  1299. <formatter name="html"
  1300. default="true"
  1301. class="solr.highlight.HtmlFormatter">
  1302. <lst name="defaults">
  1303. <str name="hl.simple.pre"><![CDATA[<strong>]]></str>
  1304. <str name="hl.simple.post"><![CDATA[</strong>]]></str>
  1305. </lst>
  1306. </formatter>
  1307. <!-- Configure the standard encoder -->
  1308. <encoder name="html"
  1309. class="solr.highlight.HtmlEncoder" />
  1310. <!-- Configure the standard fragListBuilder -->
  1311. <fragListBuilder name="simple"
  1312. default="true"
  1313. class="solr.highlight.SimpleFragListBuilder"/>
  1314. <!-- Configure the single fragListBuilder -->
  1315. <fragListBuilder name="single"
  1316. class="solr.highlight.SingleFragListBuilder"/>
  1317. <!-- default tag FragmentsBuilder -->
  1318. <fragmentsBuilder name="default"
  1319. default="true"
  1320. class="solr.highlight.ScoreOrderFragmentsBuilder">
  1321. <!--
  1322. <lst name="defaults">
  1323. <str name="hl.multiValuedSeparatorChar">/</str>
  1324. </lst>
  1325. -->
  1326. </fragmentsBuilder>
  1327. <!-- multi-colored tag FragmentsBuilder -->
  1328. <fragmentsBuilder name="colored"
  1329. class="solr.highlight.ScoreOrderFragmentsBuilder">
  1330. <lst name="defaults">
  1331. <str name="hl.tag.pre"><![CDATA[
  1332. <b style="background:yellow">,<b style="background:lawgreen">,
  1333. <b style="background:aquamarine">,<b style="background:magenta">,
  1334. <b style="background:palegreen">,<b style="background:coral">,
  1335. <b style="background:wheat">,<b style="background:khaki">,
  1336. <b style="background:lime">,<b style="background:deepskyblue">]]></str>
  1337. <str name="hl.tag.post"><![CDATA[</b>]]></str>
  1338. </lst>
  1339. </fragmentsBuilder>
  1340. <boundaryScanner name="default"
  1341. default="true"
  1342. class="solr.highlight.SimpleBoundaryScanner">
  1343. <lst name="defaults">
  1344. <str name="hl.bs.maxScan">10</str>
  1345. <str name="hl.bs.chars">.,!? &#9;&#10;&#13;</str>
  1346. </lst>
  1347. </boundaryScanner>
  1348. <boundaryScanner name="breakIterator"
  1349. class="solr.highlight.BreakIteratorBoundaryScanner">
  1350. <lst name="defaults">
  1351. <!-- type should be one of CHARACTER, WORD(default), LINE and SENTENCE -->
  1352. <str name="hl.bs.type">WORD</str>
  1353. <!-- language and country are used when constructing Locale object. -->
  1354. <!-- And the Locale object will be used when getting instance of BreakIterator -->
  1355. <str name="hl.bs.language">en</str>
  1356. <str name="hl.bs.country">US</str>
  1357. </lst>
  1358. </boundaryScanner>
  1359. </highlighting>
  1360. </searchComponent>
  1361. <!-- Update Processors
  1362. Chains of Update Processor Factories for dealing with Update
  1363. Requests can be declared, and then used by name in Update
  1364. Request Processors
  1365. http://wiki.apache.org/solr/UpdateRequestProcessor
  1366. -->
  1367. <!-- Deduplication
  1368. An example dedup update processor that creates the "id" field
  1369. on the fly based on the hash code of some other fields. This
  1370. example has overwriteDupes set to false since we are using the
  1371. id field as the signatureField and Solr will maintain
  1372. uniqueness based on that anyway.
  1373. -->
  1374. <!--
  1375. <updateRequestProcessorChain name="dedupe">
  1376. <processor class="solr.processor.SignatureUpdateProcessorFactory">
  1377. <bool name="enabled">true</bool>
  1378. <str name="signatureField">id</str>
  1379. <bool name="overwriteDupes">false</bool>
  1380. <str name="fields">name,features,cat</str>
  1381. <str name="signatureClass">solr.processor.Lookup3Signature</str>
  1382. </processor>
  1383. <processor class="solr.LogUpdateProcessorFactory" />
  1384. <processor class="solr.RunUpdateProcessorFactory" />
  1385. </updateRequestProcessorChain>
  1386. -->
  1387. <!-- Language identification
  1388. This example update chain identifies the language of the incoming
  1389. documents using the langid contrib. The detected language is
  1390. written to field language_s. No field name mapping is done.
  1391. The fields used for detection are text, title, subject and description,
  1392. making this example suitable for detecting languages form full-text
  1393. rich documents injected via ExtractingRequestHandler.
  1394. See more about langId at http://wiki.apache.org/solr/LanguageDetection
  1395. -->
  1396. <!--
  1397. <updateRequestProcessorChain name="langid">
  1398. <processor class="org.apache.solr.update.processor.TikaLanguageIdentifierUpdateProcessorFactory">
  1399. <str name="langid.fl">text,title,subject,description</str>
  1400. <str name="langid.langField">language_s</str>
  1401. <str name="langid.fallback">en</str>
  1402. </processor>
  1403. <processor class="solr.LogUpdateProcessorFactory" />
  1404. <processor class="solr.RunUpdateProcessorFactory" />
  1405. </updateRequestProcessorChain>
  1406. -->
  1407. <!-- Response Writers
  1408. http://wiki.apache.org/solr/QueryResponseWriter
  1409. Request responses will be written using the writer specified by
  1410. the 'wt' request parameter matching the name of a registered
  1411. writer.
  1412. The "default" writer is the default and will be used if 'wt' is
  1413. not specified in the request.
  1414. -->
  1415. <!-- The following response writers are implicitly configured unless
  1416. overridden...
  1417. -->
  1418. <!--
  1419. <queryResponseWriter name="xml"
  1420. default="true"
  1421. class="solr.XMLResponseWriter" />
  1422. <queryResponseWriter name="json" class="solr.JSONResponseWriter"/>
  1423. <queryResponseWriter name="python" class="solr.PythonResponseWriter"/>
  1424. <queryResponseWriter name="ruby" class="solr.RubyResponseWriter"/>
  1425. <queryResponseWriter name="php" class="solr.PHPResponseWriter"/>
  1426. <queryResponseWriter name="phps" class="solr.PHPSerializedResponseWriter"/>
  1427. <queryResponseWriter name="csv" class="solr.CSVResponseWriter"/>
  1428. -->
  1429. <queryResponseWriter name="json" class="solr.JSONResponseWriter">
  1430. <!-- For the purposes of the tutorial, JSON responses are written as
  1431. plain text so that they are easy to read in *any* browser.
  1432. If you expect a MIME type of "application/json" just remove this override.
  1433. -->
  1434. <str name="content-type">text/plain; charset=UTF-8</str>
  1435. </queryResponseWriter>
  1436. <!--
  1437. Custom response writers can be declared as needed...
  1438. -->
  1439. <!-- The solr.velocity.enabled flag is used by Solr's test cases so that this response writer is not
  1440. loaded (causing an error if contrib/velocity has not been built fully) -->
  1441. <!-- <queryResponseWriter name="velocity" class="solr.VelocityResponseWriter" enable="${solr.velocity.enabled:true}"/> -->
  1442. <!-- XSLT response writer transforms the XML output by any xslt file found
  1443. in Solr's conf/xslt directory. Changes to xslt files are checked for
  1444. every xsltCacheLifetimeSeconds.
  1445. -->
  1446. <queryResponseWriter name="xslt" class="solr.XSLTResponseWriter">
  1447. <int name="xsltCacheLifetimeSeconds">5</int>
  1448. </queryResponseWriter>
  1449. <!-- Query Parsers
  1450. http://wiki.apache.org/solr/SolrQuerySyntax
  1451. Multiple QParserPlugins can be registered by name, and then
  1452. used in either the "defType" param for the QueryComponent (used
  1453. by SearchHandler) or in LocalParams
  1454. -->
  1455. <!-- example of registering a query parser -->
  1456. <!--
  1457. <queryParser name="myparser" class="com.mycompany.MyQParserPlugin"/>
  1458. -->
  1459. <!-- Function Parsers
  1460. http://wiki.apache.org/solr/FunctionQuery
  1461. Multiple ValueSourceParsers can be registered by name, and then
  1462. used as function names when using the "func" QParser.
  1463. -->
  1464. <!-- example of registering a custom function parser -->
  1465. <!--
  1466. <valueSourceParser name="myfunc"
  1467. class="com.mycompany.MyValueSourceParser" />
  1468. -->
  1469. <!-- Legacy config for the admin interface -->
  1470. <admin>
  1471. <defaultQuery>*:*</defaultQuery>
  1472. <!-- configure a healthcheck file for servers behind a
  1473. loadbalancer
  1474. -->
  1475. <!--
  1476. <healthcheck type="file">server-enabled</healthcheck>
  1477. -->
  1478. </admin>
  1479. <!-- Following is a dynamic way to include other components or any customized solrconfig.xml stuff, added by other contrib modules -->
  1480. <xi:include href="solrconfig_extra.xml" xmlns:xi="http://www.w3.org/2001/XInclude">
  1481. <xi:fallback>
  1482. <!-- Spell Check
  1483. The spell check component can return a list of alternative spelling
  1484. suggestions. This component must be defined in
  1485. solrconfig_extra.xml if present, since it's used in the search handler.
  1486. http://wiki.apache.org/solr/SpellCheckComponent
  1487. -->
  1488. <searchComponent name="spellcheck" class="solr.SpellCheckComponent">
  1489. <str name="queryAnalyzerFieldType">textSpell</str>
  1490. <!-- a spellchecker built from a field of the main index -->
  1491. <lst name="spellchecker">
  1492. <str name="name">default</str>
  1493. <str name="field">spell</str>
  1494. <str name="spellcheckIndexDir">spellchecker</str>
  1495. <str name="buildOnOptimize">true</str>
  1496. </lst>
  1497. </searchComponent>
  1498. </xi:fallback>
  1499. </xi:include>
  1500. </config>