Skip to content

Instantly share code, notes, and snippets.

@mkmik
Created July 11, 2011 16:19
Show Gist options
  • Save mkmik/1076204 to your computer and use it in GitHub Desktop.
Save mkmik/1076204 to your computer and use it in GitHub Desktop.
{{{
#!diff
--- /var/lib/dnet/solr/conf/solrconfig.xml 2011-07-11 18:10:50.970025626 +0200
+++ /home/claudio/app/openaire_solr/var/lib/dnet/solr/conf/solrconfig.xml 2011-05-27 12:58:59.000000000 +0200
@@ -31,14 +31,6 @@
-Dsolr.abortOnConfigurationError=false
-->
<abortOnConfigurationError>true</abortOnConfigurationError>
-
- <!-- Controls what version of Lucene various components of Solr
- adhere to. Generally, you want to use the latest version to
- get all bug fixes and improvements. It is highly recommended
- that you fully re-index after changing this setting as it can
- affect both how text is indexed and queried.
- -->
- <luceneMatchVersion>LUCENE_33</luceneMatchVersion>
<!-- lib directives can be used to instruct Solr to load an Jars identified
and use them to resolve any "plugins" specified in your solrconfig.xml or
@@ -78,13 +70,6 @@
If replication is in use, this should match the replication configuration. -->
<dataDir>$indexDataDir$</dataDir>
- <!-- The DirectoryFactory to use for indexes.
-
- solr.StandardDirectoryFactory, the default, is filesystem
- based. solr.RAMDirectoryFactory is memory based, not
- persistent, and doesn't work with replication.
- -->
- <directoryFactory name="DirectoryFactory" class="solr.StandardDirectoryFactory"/>
<!-- WARNING: this <indexDefaults> section only provides defaults for index writers
in general. See also the <mainIndex> section after that when changing parameters
@@ -416,7 +401,6 @@
local query request for each NamedList in sequence. -->
<listener event="newSearcher" class="solr.QuerySenderListener">
<arr name="queries">
- <lst> <str name="q">textual</str><str name="start">0</str><str name="rows">10</str></lst>
<!--
<lst> <str name="q">solr</str> <str name="start">0</str> <str name="rows">10</str> </lst>
<lst> <str name="q">rocks</str> <str name="start">0</str> <str name="rows">10</str> </lst>
@@ -430,8 +414,8 @@
requests or to gain autowarming data from. -->
<listener event="firstSearcher" class="solr.QuerySenderListener">
<arr name="queries">
- <lst> <str name="q">textual</str><str name="start">0</str><str name="rows">10</str></lst>
-<!-- <lst><str name="q">static firstSearcher warming query from solrconfig.xml</str></lst> -->
+ <lst> <str name="q">solr rocks</str><str name="start">0</str><str name="rows">10</str></lst>
+ <lst><str name="q">static firstSearcher warming query from solrconfig.xml</str></lst>
</arr>
</listener>
@@ -503,20 +487,17 @@
If no qt is defined, the requestHandler that declares default="true"
will be used.
-->
- <requestHandler name="standard" class="solr.SearchHandler" default="true">
- <!-- default values for query parameters -->
- <lst name="defaults">
- <str name="echoParams">explicit</str>
- <!-- <int name="rows">10</int> <str name="fl">*</str> <str name="version">2.1</str> -->
-
- <str name="spellcheck.onlyMorePopular">true</str>
- <str name="spellcheck.extendedResults">true</str>
- <str name="spellcheck.count">1</str>
- </lst>
- <arr name="last-components">
- <str>spellcheck</str>
- </arr>
- </requestHandler>
+ <requestHandler name="standard" class="solr.SearchHandler" default="true">
+ <!-- default values for query parameters -->
+ <lst name="defaults">
+ <str name="echoParams">explicit</str>
+ <!--
+ <int name="rows">10</int>
+ <str name="fl">*</str>
+ <str name="version">2.1</str>
+ -->
+ </lst>
+ </requestHandler>
<!-- Please refer to http://wiki.apache.org/solr/SolrReplication for details on configuring replication -->
<!-- remove the <lst name="master"> section if this is just a slave -->
@@ -670,9 +651,8 @@
<lst name="spellchecker">
<str name="name">default</str>
- <str name="field">__spell</str>
- <str name="buildOnCommit">true</str>
-<!-- <str name="spellcheckIndexDir">./spellchecker</str> -->
+ <str name="field">name</str>
+ <str name="spellcheckIndexDir">./spellchecker</str>
</lst>
<!-- a spellchecker that uses a different distance measure
}}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment