From java-user-return-50517-apmail-lucene-java-user-archive=lucene.apache.org@lucene.apache.org Fri Aug 5 01:15:28 2011 Return-Path: X-Original-To: apmail-lucene-java-user-archive@www.apache.org Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 296B26DD6 for ; Fri, 5 Aug 2011 01:15:28 +0000 (UTC) Received: (qmail 69192 invoked by uid 500); 5 Aug 2011 01:15:25 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 69036 invoked by uid 500); 5 Aug 2011 01:15:24 -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 69028 invoked by uid 99); 5 Aug 2011 01:15:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Aug 2011 01:15:24 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [120.50.41.110] (HELO XENON.brandtology.com) (120.50.41.110) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Aug 2011 01:15:17 +0000 Received: from XENON.brandtology.com ([192.168.52.110]) by xenon ([192.168.52.110]) with mapi; Fri, 5 Aug 2011 09:13:38 +0800 From: Tan Weijian To: Lucene Users Mailing List Date: Fri, 5 Aug 2011 09:13:37 +0800 Subject: Query Hits Thread-Topic: Query Hits Thread-Index: AQHMUwzndCi9wuhfpE6lxMJX+589gQ== Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Hi , I am currently using lucene 2.4, is there a way to count how many words fro= m my query hits the post? Lets say my query is: APPLE OR BANANA OR ORANGE The post is: I have a banana, i love to eat banana and apple This case, banana keyword is hit twice and apple is hit once, is there a wa= y to get the count? Thanks! Regards Wei Jian= --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org