solrconfig_extra.xml 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. <searchComponent name="spellcheck" class="solr.SpellCheckComponent">
  2. <lst name="spellchecker">
  3. <str name="name">en</str>
  4. <str name="field">spellcheck_en</str>
  5. <str name="classname">solr.DirectSolrSpellChecker</str>
  6. <str name="distanceMeasure">internal</str>
  7. <str name="accuracy">0.5</str>
  8. <str name="maxEdits">2</str>
  9. <str name="minPrefix">1</str>
  10. <str name="maxInspections">5</str>
  11. <str name="minQueryLength">4</str>
  12. <str name="maxQueryFrequency">0.01</str>
  13. <str name="thresholdTokenFrequency">.01</str>
  14. <str name="onlyMorePopular">true</str>
  15. </lst>
  16. <lst name="spellchecker">
  17. <str name="name">fr</str>
  18. <str name="field">spellcheck_fr</str>
  19. <str name="classname">solr.DirectSolrSpellChecker</str>
  20. <str name="distanceMeasure">internal</str>
  21. <str name="accuracy">0.5</str>
  22. <str name="maxEdits">2</str>
  23. <str name="minPrefix">1</str>
  24. <str name="maxInspections">5</str>
  25. <str name="minQueryLength">4</str>
  26. <str name="maxQueryFrequency">0.01</str>
  27. <str name="thresholdTokenFrequency">.01</str>
  28. <str name="onlyMorePopular">true</str>
  29. </lst>
  30. <lst name="spellchecker">
  31. <str name="name">und</str>
  32. <str name="field">spellcheck_und</str>
  33. <str name="classname">solr.DirectSolrSpellChecker</str>
  34. <str name="distanceMeasure">internal</str>
  35. <str name="accuracy">0.5</str>
  36. <str name="maxEdits">2</str>
  37. <str name="minPrefix">1</str>
  38. <str name="maxInspections">5</str>
  39. <str name="minQueryLength">4</str>
  40. <str name="maxQueryFrequency">0.01</str>
  41. <str name="thresholdTokenFrequency">.01</str>
  42. <str name="onlyMorePopular">true</str>
  43. </lst>
  44. </searchComponent>
  45. <searchComponent name="suggest" class="solr.SuggestComponent">
  46. <lst name="suggester">
  47. <str name="name">en</str>
  48. <str name="lookupImpl">AnalyzingInfixLookupFactory</str>
  49. <str name="dictionaryImpl">DocumentDictionaryFactory</str>
  50. <str name="field">twm_suggest</str>
  51. <str name="suggestAnalyzerFieldType">text_en</str>
  52. <str name="contextField">sm_context_tags</str>
  53. <str name="buildOnCommit">true</str>
  54. <str name="buildOnStartup">false</str>
  55. </lst>
  56. <lst name="suggester">
  57. <str name="name">fr</str>
  58. <str name="lookupImpl">AnalyzingInfixLookupFactory</str>
  59. <str name="dictionaryImpl">DocumentDictionaryFactory</str>
  60. <str name="field">twm_suggest</str>
  61. <str name="suggestAnalyzerFieldType">text_fr</str>
  62. <str name="contextField">sm_context_tags</str>
  63. <str name="buildOnCommit">true</str>
  64. <str name="buildOnStartup">false</str>
  65. </lst>
  66. <lst name="suggester">
  67. <str name="name">und</str>
  68. <str name="lookupImpl">AnalyzingInfixLookupFactory</str>
  69. <str name="dictionaryImpl">DocumentDictionaryFactory</str>
  70. <str name="field">twm_suggest</str>
  71. <str name="suggestAnalyzerFieldType">text_und</str>
  72. <str name="contextField">sm_context_tags</str>
  73. <str name="buildOnCommit">true</str>
  74. <str name="buildOnStartup">false</str>
  75. </lst>
  76. </searchComponent>
  77. <!--
  78. Autocomplete
  79. 7.0.0
  80. -->
  81. <requestHandler name="/autocomplete" class="solr.SearchHandler" startup="lazy">
  82. <lst name="defaults">
  83. <str name="terms">false</str>
  84. <str name="distrib">false</str>
  85. <str name="spellcheck">false</str>
  86. <str name="spellcheck.onlyMorePopular">true</str>
  87. <str name="spellcheck.extendedResults">false</str>
  88. <str name="spellcheck.count">1</str>
  89. <str name="suggest">false</str>
  90. <str name="suggest.count">10</str>
  91. </lst>
  92. <arr name="components">
  93. <str>terms</str>
  94. <str>spellcheck</str>
  95. <str>suggest</str>
  96. </arr>
  97. </requestHandler>
  98. <!--
  99. Extract
  100. 7.0.0
  101. -->
  102. <requestHandler name="/update/extract" class="solr.extraction.ExtractingRequestHandler" startup="lazy">
  103. <lst name="defaults">
  104. <str name="lowernames">true</str>
  105. <str name="uprefix">ignored_</str>
  106. <str name="captureAttr">true</str>
  107. <str name="fmap.a">links</str>
  108. <str name="fmap.div">ignored_</str>
  109. </lst>
  110. </requestHandler>
  111. <!--
  112. More Like This
  113. 7.0.0
  114. -->
  115. <requestHandler name="/mlt" class="solr.MoreLikeThisHandler">
  116. <lst name="defaults">
  117. <str name="mlt.mintf">1</str>
  118. <str name="mlt.mindf">1</str>
  119. <str name="mlt.match.include">false</str>
  120. <str name="timeAllowed">${solr.mlt.timeAllowed:2000}</str>
  121. </lst>
  122. </requestHandler>
  123. <!--
  124. Select
  125. 7.0.0
  126. -->
  127. <requestHandler name="/select" class="solr.SearchHandler">
  128. <lst name="defaults">
  129. <str name="defType">lucene</str>
  130. <str name="df">id</str>
  131. <str name="echoParams">explicit</str>
  132. <str name="omitHeader">true</str>
  133. <str name="timeAllowed">${solr.selectSearchHandler.timeAllowed:-1}</str>
  134. <str name="spellcheck">false</str>
  135. </lst>
  136. <arr name="last-components">
  137. <str>spellcheck</str>
  138. <str>elevator</str>
  139. </arr>
  140. </requestHandler>
  141. <!--
  142. Spellcheck
  143. 7.0.0
  144. -->
  145. <requestHandler name="/spell" class="solr.SearchHandler" startup="lazy">
  146. <lst name="defaults">
  147. <str name="df">id</str>
  148. <str name="spellcheck.dictionary">und</str>
  149. <str name="spellcheck">on</str>
  150. <str name="spellcheck.onlyMorePopular">false</str>
  151. <str name="spellcheck.extendedResults">false</str>
  152. <str name="spellcheck.count">1</str>
  153. <str name="spellcheck.alternativeTermCount">5</str>
  154. <str name="spellcheck.maxResultsForSuggest">5</str>
  155. <str name="spellcheck.collate">true</str>
  156. <str name="spellcheck.collateExtendedResults">true</str>
  157. <str name="spellcheck.maxCollationTries">10</str>
  158. <str name="spellcheck.maxCollations">5</str>
  159. </lst>
  160. <arr name="last-components">
  161. <str>spellcheck</str>
  162. </arr>
  163. </requestHandler>
  164. <!--
  165. Suggester
  166. 7.0.0
  167. -->
  168. <requestHandler name="/suggest" class="solr.SearchHandler" startup="lazy">
  169. <lst name="defaults">
  170. <str name="suggest">true</str>
  171. <str name="suggest.dictionary">und</str>
  172. <str name="suggest.dictionary">10</str>
  173. </lst>
  174. <arr name="components">
  175. <str>suggest</str>
  176. </arr>
  177. </requestHandler>
  178. <!--
  179. Term Vector
  180. 7.0.0
  181. -->
  182. <requestHandler name="/tvrh" class="solr.SearchHandler" startup="lazy">
  183. <lst name="defaults">
  184. <str name="df">id</str>
  185. <str name="tv">true</str>
  186. </lst>
  187. <arr name="last-components">
  188. <str>tvComponent</str>
  189. </arr>
  190. </requestHandler>
  191. <!--
  192. Special configs for Elevator
  193. 7.0.0
  194. -->
  195. <searchComponent name="elevator" class="solr.QueryElevationComponent">
  196. <str name="queryFieldType">string</str>
  197. <str name="config-file">elevate.xml</str>
  198. </searchComponent>
  199. <!--
  200. Special configs for Term Vector
  201. 7.0.0
  202. -->
  203. <searchComponent name="tvComponent" class="solr.TermVectorComponent"/>