solrconfig.xml 70 KB

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