From java-user-return-16230-apmail-lucene-java-user-archive=lucene.apache.org@lucene.apache.org Tue Sep 06 06:21:19 2005 Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 86993 invoked from network); 6 Sep 2005 06:21:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Sep 2005 06:21:19 -0000 Received: (qmail 24223 invoked by uid 500); 6 Sep 2005 06:21:18 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 23305 invoked by uid 500); 6 Sep 2005 06:21:14 -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 23292 invoked by uid 99); 6 Sep 2005 06:21:14 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Sep 2005 23:21:14 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of sean@oconeco.com designates 216.239.128.26 as permitted sender) Received: from [216.239.128.26] (HELO smtp.omnis.com) (216.239.128.26) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Sep 2005 23:21:27 -0700 Received: from [127.0.0.1] (va-71-48-139-67.dhcp.sprint-hsd.net [71.48.139.67]) by smtp-relay.omnis.com (Postfix) with ESMTP id B3CA0200688C for ; Mon, 5 Sep 2005 23:21:11 -0700 (PDT) Message-ID: <431D3580.3080303@oconeco.com> Date: Tue, 06 Sep 2005 02:21:52 -0400 From: Sean O'Connor User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: java-user@lucene.apache.org Subject: Hits document offset information? Span query or Surround? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I believe I have heard that Span queries provide some way to access document offset information for their hits somehow. Does anyone know if this is true, and if so, how I would go about it? Alternatively (preferably actually) does the surround code from the SVN development area have a way of returning offsets for the matching hits? I believe the current highlighter code matches all query terms in a hit document, not just those satisfying a query criteria. I need a more precise way to access the hit term offsets. I am working on hit highlighting, hit excepts and summaries, and compound queries (is this called search vectors?). I am still working through the surround code in dev. to see if that gives me the compound queries I need. I am willing to spend a few days to work on implementing adding offsets to the returned hits (or something similar) if this is not currently available. It is something I need, even at the cost of search efficiency. Thanks Sean --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org