Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 26997 invoked from network); 28 Jan 2010 16:18:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 28 Jan 2010 16:18:18 -0000 Received: (qmail 22427 invoked by uid 500); 28 Jan 2010 16:18:16 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 22356 invoked by uid 500); 28 Jan 2010 16:18:16 -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 22346 invoked by uid 99); 28 Jan 2010 16:18:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Jan 2010 16:18:16 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of vaiju1981@gmail.com designates 209.85.218.222 as permitted sender) Received: from [209.85.218.222] (HELO mail-bw0-f222.google.com) (209.85.218.222) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Jan 2010 16:18:08 +0000 Received: by bwz22 with SMTP id 22so633485bwz.5 for ; Thu, 28 Jan 2010 08:17:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=NRmiXdeYLnekSVaxafxZllMazg9e2spRrfYwBKy6aS8=; b=RXG0B40Yc8zWUOq67dY/zaRa9KQsIl0m+yEWhI4rn9wkCh9K7BE+1WpTASQQZfsVwI 8xHog8orkEbtFVCw5iGprcxjpbOmvVK9RC2TAMz8rFu5vPtvmIThYrqPeO9Ad3aWVeCz eii+QmPM3HempFePNiY2WUyFVLjNCyD1ULMlA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=sxYjwlUPfwQ6xhM1Xr7Dm7xG+lZQcjL2l2qb7qnwKme0IInxtaIiMvsqlhlZpLtNON EJR/5Yz7lx27gC1GmOZ8ez7d8gY04LHhGHoKuizv3l5L6F3iKyROtX8eWIlNvjDWjGwH rB2wxkXzHNO+y6zuVWeJzoHOfw0C1pElysGOI= MIME-Version: 1.0 Received: by 10.204.48.197 with SMTP id s5mr3109384bkf.88.1264695468055; Thu, 28 Jan 2010 08:17:48 -0800 (PST) Date: Thu, 28 Jan 2010 21:47:48 +0530 Message-ID: <13a254fb1001280817k2e38d8a2la4dbd8a94bf7e8dc@mail.gmail.com> Subject: How to get matched terms From: Vaijanath Rao To: java-user@lucene.apache.org Content-Type: multipart/alternative; boundary=00032555bc1e1f5ee8047e3bdc8a X-Virus-Checked: Checked by ClamAV on apache.org --00032555bc1e1f5ee8047e3bdc8a Content-Type: text/plain; charset=ISO-8859-1 Hi All, What is the simplest way of getting the matched terms of the query with respect to the document. So for example let's say a document has field X and the contains of the field are "a b c" now when I do a search for 'b c'. The document will be returned I want to get back the terms that this document matched with the query terms. Can someone tell me the easiest way to accomplish this. --Thanks and Regards Vaijanath -- I am feeling fine, healthier and Happier, what about you --00032555bc1e1f5ee8047e3bdc8a--