Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 60706 invoked from network); 1 Jun 2010 20:54:06 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Jun 2010 20:54:06 -0000 Received: (qmail 80171 invoked by uid 500); 1 Jun 2010 20:54:04 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 80139 invoked by uid 500); 1 Jun 2010 20:54:04 -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 80131 invoked by uid 99); 1 Jun 2010 20:54:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jun 2010 20:54:04 +0000 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=FREEMAIL_FROM,SPF_HELO_PASS,SPF_NEUTRAL,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: 216.139.236.158 is neither permitted nor denied by domain of sirishreddy@gmail.com) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jun 2010 20:53:57 +0000 Received: from ben.nabble.com ([192.168.236.152]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1OJYSv-0004DV-2y for java-user@lucene.apache.org; Tue, 01 Jun 2010 13:53:37 -0700 Date: Tue, 1 Jun 2010 13:53:37 -0700 (PDT) From: Sirish Vadala To: java-user@lucene.apache.org Message-ID: <1275425617086-862859.post@n3.nabble.com> Subject: Problem fetching number of occurrences MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hello All: Can any one suggest me the best way to get the no. of occurrences of each word per document in Lucene? Eg: Let the indexed text be: If you are posting a question, please try search first. Your question may have already been answered. Now if I search for the word 'question', then I would like to get this document along with the number of occurrences of question in the document, in the above case it would be 2. Any hint would be appreciated. Thanks. -- View this message in context: http://lucene.472066.n3.nabble.com/Problem-fetching-number-of-occurrences-tp862859p862859.html Sent from the Lucene - Java Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org