Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 21978 invoked from network); 4 Nov 2005 22:02:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Nov 2005 22:02:46 -0000 Received: (qmail 96297 invoked by uid 500); 4 Nov 2005 22:02:43 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 96271 invoked by uid 500); 4 Nov 2005 22:02:43 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 96259 invoked by uid 99); 4 Nov 2005 22:02:43 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Nov 2005 14:02:41 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 89D4350F for ; Fri, 4 Nov 2005 23:02:20 +0100 (CET) Message-ID: <2128408255.1131141740562.JavaMail.jira@ajax.apache.org> Date: Fri, 4 Nov 2005 23:02:20 +0100 (CET) From: "Yonik Seeley (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Updated: (LUCENE-395) CoordConstrainedBooleanQuery + QueryParser support Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/LUCENE-395?page=all ] Yonik Seeley updated LUCENE-395: -------------------------------- Attachment: BooleanQuery.patch TestBooleanMinShouldMatch.java Thanks for the scoring clarification guys... if I only set minNrShouldMatch>0 on the top level query, all the scores match! Changes: - added BooleanQuery.getMinimumNumberShouldMatch() - added the syntax Chris (Hoss) suggested to BooleanQuery.toString()... but it's not too late to change if someone has a better idea - added random boolean query testing with variable minMrShouldMatch to TestBooleanMinShouldMatch > CoordConstrainedBooleanQuery + QueryParser support > -------------------------------------------------- > > Key: LUCENE-395 > URL: http://issues.apache.org/jira/browse/LUCENE-395 > Project: Lucene - Java > Type: Improvement > Components: Search > Versions: unspecified > Environment: Operating System: other > Platform: Other > Reporter: Mark Harwood > Assignee: Lucene Developers > Priority: Minor > Attachments: BooleanQuery.patch, BooleanScorer2.java, CoordConstrainedBooleanQuery.java, CoordConstrainedBooleanQuery.java, CustomQueryParserExample.java, CustomQueryParserExample.java, LUCENE-395.patch, LUCENE-395.patch, LUCENE-395.patch, TestBooleanMinShouldMatch.java, TestBooleanMinShouldMatch.java, TestBooleanMinShouldMatch.java, TestBooleanMinShouldMatch.java, TestBooleanMinShouldMatch.java, TestBooleanMinShouldMatch.java > > Attached 2 new classes: > 1) CoordConstrainedBooleanQuery > A boolean query that only matches if a specified number of the contained clauses > match. An example use might be a query that returns a list of books where ANY 2 > people from a list of people were co-authors, eg: > "Lucene In Action" would match ("Erik Hatcher" "Otis Gospodnetić" "Mark Harwood" > "Doug Cutting") with a minRequiredOverlap of 2 because Otis and Erik wrote that. > The book "Java Development with Ant" would not match because only 1 element in > the list (Erik) was selected. > 2) CustomQueryParserExample > A customised QueryParser that allows definition of > CoordConstrainedBooleanQueries. The solution (mis)uses fieldnames to pass > parameters to the custom query. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org