Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2ABDAD1B1 for ; Wed, 12 Sep 2012 01:35:09 +0000 (UTC) Received: (qmail 99626 invoked by uid 500); 12 Sep 2012 01:35:08 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 99567 invoked by uid 500); 12 Sep 2012 01:35:07 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 99559 invoked by uid 99); 12 Sep 2012 01:35:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Sep 2012 01:35:07 +0000 Date: Wed, 12 Sep 2012 12:35:07 +1100 (NCT) From: "Robert Muir (JIRA)" To: dev@lucene.apache.org Message-ID: <1300394089.66989.1347413707893.JavaMail.jiratomcat@arcas> In-Reply-To: <995972127.66764.1347409147565.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (LUCENE-4378) QueryParsers do not support negative boosts MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LUCENE-4378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13453629#comment-13453629 ] Robert Muir commented on LUCENE-4378: ------------------------------------- In my opinion, a better approach is something like the BoostingQuery in lucene/queries for this demoting of terms. As far as the implementation, I don't particularly like that it goes thru coord(), but we could improve that. > 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: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org