lucene-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Muir <>
Subject Re: Problem when the synonym has 2 words
Date Fri, 12 Mar 2010 02:51:49 GMT
On Thu, Mar 11, 2010 at 7:36 PM, Claudio R <> wrote:
> Hi Robert.
> The Solr's SynonymFilter recommends expanding the synonym
> at indexing time. But it will make my index grow much. I can do a
> replace in the query before QueryParser run, but this is an
> anti-pattern.
> What do you suggest Robert?

One idea would be to parse the query yourself, in a different way than
Lucene's QueryParser (don't divide up on whitespace!). Perhaps then
you could use Solr's SynonymFilter purely at query-time.

Robert Muir

View raw message