[ 
https://issues.apache.org/jira/browse/LUCENE-4378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13453582#comment-13453582
 ] 

Robert Muir commented on LUCENE-4378:
-------------------------------------

As I said before, I just don't agree.

I don't think it would be good to add to the grammar: its significantly trappy 
and I can't think of any actual use cases,
instead lots of confusion where people really want a small boost instead of a 
negative one.

So I think its a good thing that its not supported and throws an exception (and 
documented as such in the syntax today).
                
> QueryParsers do not support negative boosts
> -------------------------------------------
>
>                 Key: LUCENE-4378
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4378
>             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: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to