Apache Solr open-source search software
example config update
Yonik Seeley44c19f4a4b6c
diff --git a/example/conf/schema.xml b/example/conf/schema.xmlindex f3088589ae1..1ad6d3ee4fd 100755--- a/example/conf/schema.xml+++ b/example/conf/schema.xml@@ -108,7 +108,9 @@<fieldtype name="text" class="solr.TextField" positionIncrementGap="100"><analyzer type="index"><tokenizer class="solr.WhitespaceTokenizerFactory"/>- <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="false"/>+ <!-- in this example, we will only use synonyms at query time+ <filter class="solr.SynonymFilterFactory" synonyms="index_synonyms.txt" ignoreCase="true" expand="false"/>+ --><filter class="solr.StopFilterFactory" ignoreCase="true"/><filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0"/><filter class="solr.LowerCaseFilterFactory"/>@@ -116,7 +118,7 @@</analyzer><analyzer type="query"><tokenizer class="solr.WhitespaceTokenizerFactory"/>- <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="false"/>+ <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/><filter class="solr.StopFilterFactory" ignoreCase="true"/><filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="0" catenateNumbers="0" catenateAll="0"/><filter class="solr.LowerCaseFilterFactory"/>diff --git a/example/conf/stopwords.txt b/example/conf/stopwords.txtindex 5401d99f9fb..0632c26158d 100644--- a/example/conf/stopwords.txt+++ b/example/conf/stopwords.txt@@ -1,2 +1,41 @@+#a couple of test stopwords to test that the words are really being configured+#from this file:stopwordastopwordb++#Standard english stop words taken from Lucene's StopAnalyzer+an+and+are+as+at+be+but+by+for+if+in+into+is+it+no+not+of+on+or+s+such+t+that+the+their+then+there+these+they+this+to+was+will+with+diff --git a/example/conf/synonyms.txt b/example/conf/synonyms.txtindex 2016259e971..748ad1435a6 100644--- a/example/conf/synonyms.txt+++ b/example/conf/synonyms.txt@@ -1,6 +1,18 @@++#some test synonym mappings for things unlikely to appear in input textaaa => aaaabbb => bbbb1 bbbb2ccc => cccc1,cccc2a\=>a => b\=>ba\,a => b\,bfooaaa,baraaa,bazaaa++#synonyms, for our purposes+GB,gib,gigabyte,gigabytes+MB,mib,megabyte,megabytes+#notice we use "gib" instead of "GiB" so any WordDelimiterFilter coming+#after us won't split it into two words.++#spelling correction+pixima => pixma+diff --git a/example/exampledocs/sd500.xml b/example/exampledocs/sd500.xmlindex 76864cba75d..42f0bd9007a 100755--- a/example/exampledocs/sd500.xml+++ b/example/exampledocs/sd500.xml@@ -1,6 +1,6 @@<add><doc><field name="id">9885A004</field>- <field name="name">Canon Powershot SD500</field>+ <field name="name">Canon PowerShot SD500</field><field name="manu">Canon Inc.</field><field name="cat">electronics</field><field name="cat">camera</field>