Riz,

The synonyms file doesn't support wildcards.  You'll need to list all numbers 
explicitly.

Otis
----
Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch
Lucene ecosystem search :: http://search-lucene.com/



----- Original Message ----
> From: M.Rizwan <muhammad.riz...@sigmatec.com.pk>
> To: solr-user@lucene.apache.org
> Sent: Mon, August 9, 2010 5:46:02 AM
> Subject: wildcards in solr synonyms file
> 
> Hi,
> 
> I want to write an entry in solr synonyms file so that when i search  for
> word discount, solr return all records which have [10]% kind of words  in
> title.
> So for example, i have a document
> cars - 10% off
> and I  search for word "discount", this document should be returned aswell.
> 
> In  synonyms file, I have written
> discount => *%
> 
> but it didn't work.  Any idea how to do this?
> 
> --
> Riz
> 

Reply via email to