lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <luc...@mikemccandless.com>
Subject Re: wildcardquery rewrite()
Date Wed, 07 Oct 2009 09:15:48 GMT
I agree, this looks like a bug (boost & constant-score-ness is lost)
-- wanna open an issue & patch it?

Mike

On Tue, Oct 6, 2009 at 10:22 PM, Robert Muir <rcmuir@gmail.com> wrote:
> someone asked this question on the user list:
> http://www.lucidimagination.com/search/document/6f38de391b242102/prefixquery_vs_wildcardquery
>
> it made me look at the wildcard rewrite(), where i see this:
>    if (!termContainsWildcard)
>      return new TermQuery(getTerm());
>
> is it a problem the boost is not preserved in this special case?
>
> is it also a problem that if the user sets the default MultiTermQuery
> rewriteMethod to say, CONSTANT_SCORE_FILTER_REWRITE,
> that this rewritten TermQuery isn't wrapped with a constant score?
>
> Sorry if it seems a bit nitpicky, really the issue is that I want to
> do the right thing for a more complex query I am working on, but don't
> want to overkill either.
> --
> Robert Muir
> rcmuir@gmail.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-dev-help@lucene.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message