lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Muir (JIRA)" <>
Subject [jira] [Commented] (LUCENE-4378) QueryParsers do not support negative boosts
Date Wed, 12 Sep 2012 02:59:07 GMT


Robert Muir commented on LUCENE-4378:

My confusion is that your argument seems like it confluates the concept/syntax with an implementation
– you're saying you don't like a particular implementation, therefore you don't think QueryParser
should allow for the concept.

Not really, I'm not suggesting we support negative boosts at all. I'm suggesting a way to
support the use case of optional clauses that, if they match,
cause the other part to return a lower score.

I don't think negative boost syntax is the way to achieve that either.

> QueryParsers do not support negative boosts
> -------------------------------------------
>                 Key: LUCENE-4378
>                 URL:
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Hoss Man
>         Attachments: LUCENE-4378-test.patch
> Negative query boosts have been supported at the "Query" object level for a long time
(resulting in negative scores for matching documents), but evidently we never updated the
QueryParsers to know about this - attempting to specify a negative boost in the query string
results in a parse error.
> we should probably add this to the parser grammer(s)

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message