lucene-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Willnauer <simon.willna...@googlemail.com>
Subject Re: Problem when the synonym has 2 words
Date Fri, 12 Mar 2010 06:41:06 GMT
On Fri, Mar 12, 2010 at 3:51 AM, Robert Muir <rcmuir@gmail.com> wrote:
> On Thu, Mar 11, 2010 at 7:36 PM, Claudio R <usertec@yahoo.com.br> 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.
There is a extendable query parser in contrib/misc which could help
with this issue.

simon
>
> --
> Robert Muir
> rcmuir@gmail.com
>

Mime
View raw message