From java-user-return-34334-apmail-lucene-java-user-archive=lucene.apache.org@lucene.apache.org Mon Jun 09 15:21:47 2008 Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 33253 invoked from network); 9 Jun 2008 15:21:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Jun 2008 15:21:46 -0000 Received: (qmail 89082 invoked by uid 500); 9 Jun 2008 15:21:43 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 88761 invoked by uid 500); 9 Jun 2008 15:21:42 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 88750 invoked by uid 99); 9 Jun 2008 15:21:42 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jun 2008 08:21:42 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [194.125.145.37] (HELO mercury.propylon.com) (194.125.145.37) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jun 2008 15:20:46 +0000 Received: from propylon-sdsl.sdsl.esat.net ([193.120.101.26] helo=[192.168.213.119]) by mercury.propylon.com with esmtp (Exim 4.50) id 1K5j6t-0006xJ-74 for java-user@lucene.apache.org; Mon, 09 Jun 2008 16:16:43 +0100 Message-ID: <484D4A5D.4000507@propylon.com> Date: Mon, 09 Jun 2008 16:21:01 +0100 From: John Byrne User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: java-user@lucene.apache.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 193.120.101.26 X-SA-Exim-Mail-From: john.byrne@propylon.com Subject: number of hits per document X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on mercury.propylon.com X-Spam-Level: X-SA-Exim-Version: 4.2 (built Thu, 03 Mar 2005 10:44:12 +0100) X-SA-Exim-Scanned: Yes (on mercury.propylon.com) X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=0.0 required=5.0 tests=AWL autolearn=failed version=3.0.3 Hi, Is there an easy way to find out the number of hits per document for a Query, rather than just for a Term? Let's say, for example, I have a document like this: "here is cats near dogs and here is cats a long long way from dogs" and I use a SpanNearQuery to find "cats" near "dogs" with a slop of 1 - I need to be able to find out that there was 1 hit, even though there are 2 occurrences of "cats" and 2 of "dogs" - there is still only 1 hit that matches my Query. Is this possible? Thanks, JB. --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org