Hi George,
I don't think this will work. The synonyms will be added after the query is
parsed, so you'll have terms like "bed:3" rather than matching "3" against the
bed field. If I was implementing this I'd try doing some pattern matching
before passing the query to Solr, e.g.:
"3 bed Surrey" -> q="Surrey" fq=bed:3
I guess this kind of thing could also be implemented as a Solr query plug-in.
Don't know if anything like it exists.
Tom
On 18 Sep 2012, at 11:30, george123 <[email protected]> wrote:
> I guess I could come up with a synonyms.txt file and every instance of
> 3 bed
> I change to
> bed:3
> it "should" work.
>
> eg
>
> 3 bed => bed:3
>
> not exactly a synonym or what it was designed for, but it might work?
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Solr4-how-to-make-it-do-this-tp4008574p4008576.html
> Sent from the Solr - User mailing list archive at Nabble.com.