Hi,

I'm coing back to trying to get the Synonynms working (alongside the
spellchecker). Here is what I have:

<fieldType name="spell" class="solr.TextField" positionIncrementGap="100">
  <analyzer type="index">
    <tokenizer class="solr.StandardTokenizerFactory"/>
    <filter class="solr.StopFilterFactory" ignoreCase="true"
words="stopwords.txt"/>
    <filter class="solr.StandardFilterFactory"/>
    <filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
  </analyzer>
  <analyzer type="query">
    <tokenizer class="solr.StandardTokenizerFactory"/>
    <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt"
ignoreCase="true" expand="true"/>
    <filter class="solr.StopFilterFactory" ignoreCase="true"
words="stopwords.txt"/>
    <filter class="solr.StandardFilterFactory"/>
    <filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
  </analyzer>
</fieldType>

Then in synonyms.txt, I have:

pixima => pixma
cellpne => cellphone
computer => laptop

aaaa, car, food, hhhh

aaaaaaaaaaaaaaaaaaa, food

However, after restarting Solr and then trying a search for
"aaaaaaaaaaaaaaaaaaa" , my test result which contains "food" in, never seems
to come up

Anyone got any ideas?

The annoying thing is that it works fine on a 2nd "dev" install I have (much
simpler, and not using multicore), but using the exact same fieldType setup.

Can anyone shed any light?

TIA!
-- 
Andy Newby
a...@ultranerds.com

Reply via email to