Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@apache.org Received: (qmail 19435 invoked from network); 16 Oct 2002 18:14:08 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 16 Oct 2002 18:14:08 -0000 Received: (qmail 20639 invoked by uid 97); 16 Oct 2002 18:14:46 -0000 Delivered-To: qmlist-jakarta-archive-lucene-user@jakarta.apache.org Received: (qmail 20428 invoked by uid 97); 16 Oct 2002 18:14:44 -0000 Mailing-List: contact lucene-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Lucene Users List" Reply-To: "Lucene Users List" Delivered-To: mailing list lucene-user@jakarta.apache.org Received: (qmail 20365 invoked by uid 98); 16 Oct 2002 18:14:44 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Message-ID: <3DADAC60.6010105@lucene.com> Date: Wed, 16 Oct 2002 11:13:52 -0700 From: Doug Cutting User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020830 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Lucene Users List Subject: Re: retrieving term positions during the search process References: <74ADFA8C453ED611A71E00508BBBA13501AA7323@exchange1.cinetic.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Stephan Grimm wrote: > Is there a way to retrieve the original term positions during the search > process invoked by Searcher.search()? In addition to the documents and their > scores we want to have access to the positions of the terms found in order > to do a highlighting. We don't want to perform a second iteration to search > the query terms in the document again for they must be contained in the > index in some way. > > We would like to do something like > TermPositions[] hits.getHitQueryTermPositions(int doc) > returning the term positions for each query term in the original document. See http://nagoya.apache.org/eyebrowse/ReadMsg?listName=lucene-dev@jakarta.apache.org&msgId=493352 Doug -- To unsubscribe, e-mail: For additional commands, e-mail: