Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

solrconfig.xml 68KB

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