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

Hoss Man commented on LUCENE-4378:
----------------------------------

bq. I don't agree with this. Negative boosts to terms are generally 
undesirable, this is really esoteric and trappy.

i agree with you somewhat, but it is a disconnect between what is possible in 
the Query objects, and what the parses allows so i opened an issue.  

in some cases it is actually desirable, and somewhat straight forward to use 
when programaticly combined with other Query objects, so we should consider 
adding it, or at least adding an option for it that doesn't involve editing the 
grammer -- ie: perhaps allow it in the grammer(s), but then make the java code 
reject it in a way that people can override in subclasses?

                
> 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