Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 93524 invoked from network); 5 Mar 2009 22:43:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Mar 2009 22:43:01 -0000 Received: (qmail 19153 invoked by uid 500); 5 Mar 2009 22:42:55 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 19107 invoked by uid 500); 5 Mar 2009 22:42:55 -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 19098 invoked by uid 99); 5 Mar 2009 22:42:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Mar 2009 14:42:55 -0800 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 [208.69.42.181] (HELO radix.cryptio.net) (208.69.42.181) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Mar 2009 22:42:47 +0000 Received: by radix.cryptio.net (Postfix, from userid 1007) id 1833C71C1B9; Thu, 5 Mar 2009 14:42:26 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by radix.cryptio.net (Postfix) with ESMTP id 10D5A71C02E for ; Thu, 5 Mar 2009 14:42:26 -0800 (PST) Date: Thu, 5 Mar 2009 14:42:26 -0800 (PST) From: Chris Hostetter To: java-dev@lucene.apache.org Subject: Re: Getting tokens from search results. Simple concept In-Reply-To: <22247863.post@talk.nabble.com> Message-ID: References: <22225364.post@talk.nabble.com> <22247863.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Checked: Checked by ClamAV on apache.org : What I would LOVE is if I could do it in a standard Lucene search like I : mentioned earlier. : Hit.doc[0].getHitTokenList() :confused: : Something like this... The Query/Scorer APIs don't provide any mechanism for information like that to be conveyed back up the call chain -- mainly because it's more heavy weight then most people need. If you have custom Query/Scorer implementations, you can keep track of whatever state you want when executing a QUery -- in fact the SpanQuery family of queries do keep track of exactly the type of info you seem to want, and after executing a query, you can ask it for the "Spans" of any matching document -- the down side is the a loss in performance of query execution (because it takes time/memory to keep track of all the matches) -Hoss --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org