Are you using the synonyms for both indexing and query? It sounds like you want to use these synonyms only at query time. Otherwise, "10" in the index becomes "2010" in the index.

-- Jack Krupansky

-----Original Message----- From: EXTERNAL Taminidi Ravi (ETI, Automotive-Service-Solutions)
Sent: Friday, November 7, 2014 2:22 PM
To: solr-user@lucene.apache.org
Subject: Synonymn for Numbers

Hi Group,

I am working on implementing synonym for number like
10,2010
14,2014

2 digit number to get documents with four digit, I added the above lines in synonym and everything works. But now I have to get for one direction,

I tried 10=>2010 but it is still gets the record belongs to 10 , if I search 2010. I want to get only 2010 documents if I search 2010 not 10. I have expand=true in the synonym filter.

<filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/>


If any help really appreciated.

Thanks

Ravi
  • Synonymn for Nu... EXTERNAL Taminidi Ravi (ETI, Automotive-Service-Solutions)
    • Re: Synony... Anurag Sharma
    • Re: Synony... Jack Krupansky
      • RE: Sy... EXTERNAL Taminidi Ravi (ETI, Automotive-Service-Solutions)

Reply via email to