|
20 | 20 | For more details about configurations options that may appear in
|
21 | 21 | this file, see http://wiki.apache.org/solr/SolrConfigXml.
|
22 | 22 | -->
|
23 |
| -<config name="drupal-4.1-solr-4.x" > |
| 23 | +<config name="drupal-4.2-solr-4.x" > |
24 | 24 | <!-- In all configuration below, a prefix of "solr." for class names
|
25 | 25 | is an alias that causes solr to search appropriate packages,
|
26 | 26 | including org.apache.solr.(search|update|request|core|analysis)
|
|
68 | 68 | the classpath, this is useful for including all jars in a
|
69 | 69 | directory.
|
70 | 70 | -->
|
71 |
| - <lib dir="../../contrib/extraction/lib" /> |
72 |
| - <lib dir="../../contrib/clustering/lib/" /> |
| 71 | + <lib dir="${solr.contrib.dir:../../../contrib}/extraction/lib" /> |
| 72 | + <lib dir="${solr.contrib.dir:../../../contrib}/clustering/lib/" /> |
| 73 | + |
73 | 74 | <!-- The velocity library has been known to crash Solr in some
|
74 | 75 | instances when deployed as a war file to Tomcat. Therefore all
|
75 | 76 | references have been removed from the default configuration.
|
|
302 | 303 | <maxTime>${solr.autoCommit.MaxTime:120000}</maxTime>
|
303 | 304 | </autoCommit>
|
304 | 305 |
|
| 306 | + <!-- softAutoCommit is like autoCommit except it causes a |
| 307 | + 'soft' commit which only ensures that changes are visible |
| 308 | + but does not ensure that data is synced to disk. This is |
| 309 | + faster and more near-realtime friendly than a hard commit. |
| 310 | + --> |
| 311 | + <autoSoftCommit> |
| 312 | + <maxDocs>${solr.autoSoftCommit.MaxDocs:2000}</maxDocs> |
| 313 | + <maxTime>${solr.autoSoftCommit.MaxTime:10000}</maxTime> |
| 314 | + </autoSoftCommit> |
| 315 | + |
305 | 316 | <!-- Update Related Event Listeners
|
306 | 317 |
|
307 | 318 | Various IndexWriter related events can trigger Listeners to
|
|
1074 | 1085 | <!-- Solr Replication
|
1075 | 1086 |
|
1076 | 1087 | The SolrReplicationHandler supports replicating indexes from a
|
1077 |
| - "master" used for indexing and "salves" used for queries. |
| 1088 | + "master" used for indexing and "slaves" used for queries. |
1078 | 1089 |
|
1079 | 1090 | http://wiki.apache.org/solr/SolrReplication
|
1080 | 1091 |
|
1081 | 1092 | In the example below, remove the <lst name="master"> section if
|
1082 | 1093 | this is just a slave and remove the <lst name="slave"> section
|
1083 | 1094 | if this is just a master.
|
1084 | 1095 | -->
|
1085 |
| - <requestHandler name="/replication" class="solr.ReplicationHandler" > |
1086 |
| - <lst name="master"> |
1087 |
| - <str name="enable">${solr.replication.master:false}</str> |
1088 |
| - <str name="replicateAfter">commit</str> |
1089 |
| - <str name="replicateAfter">startup</str> |
1090 |
| - <str name="confFiles">${solr.replication.confFiles:schema.xml,mapping-ISOLatin1Accent.txt,protwords.txt,stopwords.txt,synonyms.txt,elevate.xml}</str> |
1091 |
| - </lst> |
1092 |
| - <lst name="slave"> |
1093 |
| - <str name="enable">${solr.replication.slave:false}</str> |
1094 |
| - <str name="masterUrl">${solr.replication.masterUrl:http://localhost:8983/solr}/replication</str> |
1095 |
| - <str name="pollInterval">${solr.replication.pollInterval:00:00:60}</str> |
1096 |
| - </lst> |
1097 |
| - </requestHandler> |
| 1096 | + <requestHandler name="/replication" class="solr.ReplicationHandler" > |
| 1097 | + <lst name="master"> |
| 1098 | + <str name="enable">${solr.replication.master:false}</str> |
| 1099 | + <str name="replicateAfter">commit</str> |
| 1100 | + <str name="replicateAfter">startup</str> |
| 1101 | + <str name="confFiles">${solr.replication.confFiles:schema.xml,mapping-ISOLatin1Accent.txt,protwords.txt,stopwords.txt,synonyms.txt,elevate.xml}</str> |
| 1102 | + </lst> |
| 1103 | + <lst name="slave"> |
| 1104 | + <str name="enable">${solr.replication.slave:false}</str> |
| 1105 | + <str name="masterUrl">${solr.replication.masterUrl:http://localhost:8983/solr}/replication</str> |
| 1106 | + <str name="pollInterval">${solr.replication.pollInterval:00:00:60}</str> |
| 1107 | + </lst> |
| 1108 | + </requestHandler> |
1098 | 1109 |
|
1099 | 1110 | <!-- Realtime get handler, guaranteed to return the latest stored fields of
|
1100 | 1111 | any document, without the need to commit or open a new searcher. The
|
|
1605 | 1616 | http://wiki.apache.org/solr/SpellCheckComponent
|
1606 | 1617 | -->
|
1607 | 1618 | <searchComponent name="spellcheck" class="solr.SpellCheckComponent">
|
| 1619 | + |
1608 | 1620 | <str name="queryAnalyzerFieldType">textSpell</str>
|
1609 | 1621 |
|
1610 | 1622 | <!-- a spellchecker built from a field of the main index -->
|
|
0 commit comments