Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 36288 invoked from network); 25 Sep 2009 12:19:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Sep 2009 12:19:08 -0000 Received: (qmail 63782 invoked by uid 500); 25 Sep 2009 12:19:05 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 63709 invoked by uid 500); 25 Sep 2009 12:19:05 -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 63699 invoked by uid 99); 25 Sep 2009 12:19:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Sep 2009 12:19:05 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [208.97.132.202] (HELO homiemail-a11.g.dreamhost.com) (208.97.132.202) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Sep 2009 12:18:55 +0000 Received: from [10.0.0.77] (adsl-065-013-152-164.sip.rdu.bellsouth.net [65.13.152.164]) by homiemail-a11.g.dreamhost.com (Postfix) with ESMTPA id A2A1219407D for ; Fri, 25 Sep 2009 05:18:34 -0700 (PDT) Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes Mime-Version: 1.0 (Apple Message framework v1076) Subject: Re: Getting Payload data from BooleanQuery results From: Grant Ingersoll In-Reply-To: <6f287d1b0909241451k6cdaa24dq74a4ca63840d8df8@mail.gmail.com> Date: Fri, 25 Sep 2009 08:18:33 -0400 Content-Transfer-Encoding: 7bit Message-Id: References: <6f287d1b0909240949q330d0fa8t1b7a575a91a8abb2@mail.gmail.com> <6f287d1b0909241451k6cdaa24dq74a4ca63840d8df8@mail.gmail.com> To: java-user@lucene.apache.org X-Mailer: Apple Mail (2.1076) X-Virus-Checked: Checked by ClamAV on apache.org Yeah, it probably makes sense to add getSpans(IR, Filter) On Sep 24, 2009, at 5:51 PM, Christopher Tignor wrote: > thanks for the tip. > > I don't see a way to integrate the QueryWrapperFilter (or any > Filter) into > SpanTermQuery.getSpans(indexReader) however. > I can use a SpanQuery with an IndexSearcher as per susual but that > leaves me > back where I started. Any thoughts? > > Also, I will need to sort these results by date so that the most > recent, > say 5 are returned... > > thanks again, > > C>T> > > On Thu, Sep 24, 2009 at 3:22 PM, Chris Hostetter > wrote: > >> >> : But alas, I cannot seem to get access to any TermPositions from >> my above >> : BooleanQuery. >> >> I would suggest refactoring your "date" restriction into a Filter >> (there's >> fairly easy to use Filter that wraps a Query) and then execute a >> SPanTermQuery just as you describe. >> >> >> -Hoss >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org >> For additional commands, e-mail: java-user-help@lucene.apache.org >> >> > > > -- > TH!NKMAP > > Christopher Tignor | Senior Software Architect > 155 Spring Street NY, NY 10012 > p.212-285-8600 x385 f.212-285-8999 -------------------------- Grant Ingersoll http://www.lucidimagination.com/ Search the Lucene ecosystem (Lucene/Solr/Nutch/Mahout/Tika/Droids) using Solr/Lucene: http://www.lucidimagination.com/search --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org