|
35 | 35 | that you fully re-index after changing this setting as it can |
36 | 36 | affect both how text is indexed and queried. |
37 | 37 | --> |
38 | | - <luceneMatchVersion>4.7</luceneMatchVersion> |
| 38 | + <luceneMatchVersion>4.10.1</luceneMatchVersion> |
39 | 39 |
|
40 | | - <!-- <lib/> directives can be used to instruct Solr to load an Jars |
| 40 | + <!-- <lib/> directives can be used to instruct Solr to load any Jars |
41 | 41 | identified and use them to resolve any "plugins" specified in |
42 | 42 | your solrconfig.xml or schema.xml (ie: Analyzers, Request |
43 | 43 | Handlers, etc...). |
|
117 | 117 | persistent, and doesn't work with replication. |
118 | 118 | --> |
119 | 119 | <directoryFactory name="DirectoryFactory" |
120 | | - class="${solr.directoryFactory:solr.NRTCachingDirectoryFactory}"/> |
| 120 | + class="${solr.directoryFactory:solr.NRTCachingDirectoryFactory}"> |
| 121 | + |
| 122 | + |
| 123 | + <!-- These will be used if you are using the solr.HdfsDirectoryFactory, |
| 124 | + otherwise they will be ignored. If you don't plan on using hdfs, |
| 125 | + you can safely remove this section. --> |
| 126 | + <!-- The root directory that collection data should be written to. --> |
| 127 | + <str name="solr.hdfs.home">${solr.hdfs.home:}</str> |
| 128 | + <!-- The hadoop configuration files to use for the hdfs client. --> |
| 129 | + <str name="solr.hdfs.confdir">${solr.hdfs.confdir:}</str> |
| 130 | + <!-- Enable/Disable the hdfs cache. --> |
| 131 | + <str name="solr.hdfs.blockcache.enabled">${solr.hdfs.blockcache.enabled:true}</str> |
| 132 | + <!-- Enable/Disable using one global cache for all SolrCores. |
| 133 | + The settings used will be from the first HdfsDirectoryFactory created. --> |
| 134 | + <str name="solr.hdfs.blockcache.global">${solr.hdfs.blockcache.global:true}</str> |
| 135 | + |
| 136 | + </directoryFactory> |
121 | 137 |
|
122 | 138 | <!-- The CodecFactory for defining the format of the inverted index. |
123 | 139 | The default implementation is SchemaCodecFactory, which is the official Lucene |
|
312 | 328 | this is enabled here, and controlled through log4j.properties. |
313 | 329 | --> |
314 | 330 | <infoStream>true</infoStream> |
| 331 | + |
| 332 | + <!-- |
| 333 | + Use true to enable this safety check, which can help |
| 334 | + reduce the risk of propagating index corruption from older segments |
| 335 | + into new ones, at the expense of slower merging. |
| 336 | + --> |
| 337 | + <checkIntegrityAtMerge>false</checkIntegrityAtMerge> |
315 | 338 | </indexConfig> |
316 | 339 |
|
317 | 340 |
|
|
898 | 921 |
|
899 | 922 | <!-- realtime get handler, guaranteed to return the latest stored fields of |
900 | 923 | any document, without the need to commit or open a new searcher. The |
901 | | - current implementation relies on the updateLog feature being enabled. --> |
| 924 | + current implementation relies on the updateLog feature being enabled. |
| 925 | +
|
| 926 | + ** WARNING ** |
| 927 | + Do NOT disable the realtime get handler at /get if you are using |
| 928 | + SolrCloud otherwise any leader election will cause a full sync in ALL |
| 929 | + replicas for the shard in question. Similarly, a replica recovery will |
| 930 | + also always fetch the complete index from the leader because a partial |
| 931 | + sync will not be possible in the absence of this handler. |
| 932 | + --> |
902 | 933 | <requestHandler name="/get" class="solr.RealTimeGetHandler"> |
903 | 934 | <lst name="defaults"> |
904 | 935 | <str name="omitHeader">true</str> |
|
907 | 938 | </lst> |
908 | 939 | </requestHandler> |
909 | 940 |
|
910 | | - |
| 941 | + <!-- |
| 942 | + The export request handler is used to export full sorted result sets. |
| 943 | + Do not change these defaults. |
| 944 | + --> |
| 945 | + |
| 946 | + <requestHandler name="/export" class="solr.SearchHandler"> |
| 947 | + <lst name="invariants"> |
| 948 | + <str name="rq">{!xport}</str> |
| 949 | + <str name="wt">xsort</str> |
| 950 | + <str name="distrib">false</str> |
| 951 | + </lst> |
| 952 | + |
| 953 | + <arr name="components"> |
| 954 | + <str>query</str> |
| 955 | + </arr> |
| 956 | + </requestHandler> |
| 957 | + |
| 958 | + |
| 959 | + |
| 960 | + |
| 961 | + |
| 962 | + |
911 | 963 | <!-- A Robust Example |
912 | 964 | |
913 | 965 | This example SearchHandler declaration shows off usage of the |
|
948 | 1000 |
|
949 | 1001 | <!-- Faceting defaults --> |
950 | 1002 | <str name="facet">on</str> |
| 1003 | + <str name="facet.missing">true</str> |
951 | 1004 | <str name="facet.field">cat</str> |
952 | 1005 | <str name="facet.field">manu_exact</str> |
953 | 1006 | <str name="facet.field">content_type</str> |
|
975 | 1028 | <!-- Highlighting defaults --> |
976 | 1029 | <str name="hl">on</str> |
977 | 1030 | <str name="hl.fl">content features title name</str> |
| 1031 | + <str name="hl.preserveMulti">true</str> |
978 | 1032 | <str name="hl.encoder">html</str> |
979 | 1033 | <str name="hl.simple.pre"><b></str> |
980 | 1034 | <str name="hl.simple.post"></b></str> |
|
1006 | 1060 | </requestHandler> |
1007 | 1061 |
|
1008 | 1062 |
|
1009 | | - <!-- Update Request Handler. |
1010 | | - |
| 1063 | + <!-- Update Request Handler. |
| 1064 | +
|
1011 | 1065 | http://wiki.apache.org/solr/UpdateXmlMessages |
1012 | 1066 |
|
1013 | 1067 | The canonical Request Handler for Modifying the Index through |
|
1016 | 1070 | Note: Since solr1.1 requestHandlers requires a valid content |
1017 | 1071 | type header if posted in the body. For example, curl now |
1018 | 1072 | requires: -H 'Content-type:text/xml; charset=utf-8' |
1019 | | - |
1020 | | - To override the request content type and force a specific |
1021 | | - Content-type, use the request parameter: |
| 1073 | +
|
| 1074 | + To override the request content type and force a specific |
| 1075 | + Content-type, use the request parameter: |
1022 | 1076 | ?update.contentType=text/csv |
1023 | | - |
| 1077 | +
|
1024 | 1078 | This handler will pick a response format to match the input |
1025 | 1079 | if the 'wt' parameter is not explicit |
1026 | 1080 | --> |
1027 | 1081 | <requestHandler name="/update" class="solr.UpdateRequestHandler"> |
1028 | | - <!-- See below for information on defining |
1029 | | - updateRequestProcessorChains that can be used by name |
| 1082 | + <!-- See below for information on defining |
| 1083 | + updateRequestProcessorChains that can be used by name |
1030 | 1084 | on each Update Request |
1031 | 1085 | --> |
1032 | 1086 | <!-- |
|
1036 | 1090 | --> |
1037 | 1091 | </requestHandler> |
1038 | 1092 |
|
1039 | | - <!-- for back compat with clients using /update/json and /update/csv --> |
1040 | | - <requestHandler name="/update/json" class="solr.JsonUpdateRequestHandler"> |
| 1093 | + <!-- The following are implicitly added |
| 1094 | + <requestHandler name="/update/json" class="solr.UpdateRequestHandler"> |
1041 | 1095 | <lst name="defaults"> |
1042 | 1096 | <str name="stream.contentType">application/json</str> |
1043 | 1097 | </lst> |
1044 | 1098 | </requestHandler> |
1045 | | - <requestHandler name="/update/csv" class="solr.CSVRequestHandler"> |
| 1099 | + <requestHandler name="/update/csv" class="solr.UpdateRequestHandler"> |
1046 | 1100 | <lst name="defaults"> |
1047 | 1101 | <str name="stream.contentType">application/csv</str> |
1048 | 1102 | </lst> |
1049 | 1103 | </requestHandler> |
| 1104 | + --> |
1050 | 1105 |
|
1051 | 1106 | <!-- Solr Cell Update Request Handler |
1052 | 1107 |
|
|
1142 | 1197 | <requestHandler name="/admin/file" class="solr.admin.ShowFileRequestHandler" > |
1143 | 1198 | --> |
1144 | 1199 | <!-- If you wish to hide files under ${solr.home}/conf, explicitly |
1145 | | - register the ShowFileRequestHandler using: |
| 1200 | + register the ShowFileRequestHandler using the definition below. |
| 1201 | + NOTE: The glob pattern ('*') is the only pattern supported at present, *.xml will |
| 1202 | + not exclude all files ending in '.xml'. Use it to exclude _all_ updates |
1146 | 1203 | --> |
1147 | 1204 | <!-- |
1148 | 1205 | <requestHandler name="/admin/file" |
1149 | 1206 | class="solr.admin.ShowFileRequestHandler" > |
1150 | 1207 | <lst name="invariants"> |
1151 | 1208 | <str name="hidden">synonyms.txt</str> |
1152 | 1209 | <str name="hidden">anotherfile.txt</str> |
| 1210 | + <str name="hidden">*</str> |
1153 | 1211 | </lst> |
1154 | 1212 | </requestHandler> |
1155 | 1213 | --> |
|
1343 | 1401 | </lst> |
1344 | 1402 | --> |
1345 | 1403 | </searchComponent> |
1346 | | - |
| 1404 | + |
1347 | 1405 | <!-- A request handler for demonstrating the spellcheck component. |
1348 | 1406 |
|
1349 | 1407 | NOTE: This is purely as an example. The whole purpose of the |
|
1381 | 1439 | </arr> |
1382 | 1440 | </requestHandler> |
1383 | 1441 |
|
| 1442 | + <searchComponent name="suggest" class="solr.SuggestComponent"> |
| 1443 | + <lst name="suggester"> |
| 1444 | + <str name="name">mySuggester</str> |
| 1445 | + <str name="lookupImpl">FuzzyLookupFactory</str> <!-- org.apache.solr.spelling.suggest.fst --> |
| 1446 | + <str name="dictionaryImpl">DocumentDictionaryFactory</str> <!-- org.apache.solr.spelling.suggest.HighFrequencyDictionaryFactory --> |
| 1447 | + <str name="field">cat</str> |
| 1448 | + <str name="weightField">price</str> |
| 1449 | + <str name="suggestAnalyzerFieldType">string</str> |
| 1450 | + </lst> |
| 1451 | + </searchComponent> |
| 1452 | + |
| 1453 | + <requestHandler name="/suggest" class="solr.SearchHandler" startup="lazy"> |
| 1454 | + <lst name="defaults"> |
| 1455 | + <str name="suggest">true</str> |
| 1456 | + <str name="suggest.count">10</str> |
| 1457 | + </lst> |
| 1458 | + <arr name="components"> |
| 1459 | + <str>suggest</str> |
| 1460 | + </arr> |
| 1461 | + </requestHandler> |
1384 | 1462 | <!-- Term Vector Component |
1385 | 1463 |
|
1386 | 1464 | http://wiki.apache.org/solr/TermVectorComponent |
|
1513 | 1591 | <searchComponent name="terms" class="solr.TermsComponent"/> |
1514 | 1592 |
|
1515 | 1593 | <!-- A request handler for demonstrating the terms component --> |
1516 | | - <requestHandler name="/js" class="org.apache.solr.handler.js.JavaScriptRequestHandler" startup="lazy"/> |
1517 | 1594 | <requestHandler name="/terms" class="solr.SearchHandler" startup="lazy"> |
1518 | 1595 | <lst name="defaults"> |
1519 | 1596 | <bool name="terms">true</bool> |
|
0 commit comments