lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grant Ingersoll <gsing...@apache.org>
Subject Re: Getting Payload data from BooleanQuery results
Date Fri, 25 Sep 2009 12:18:33 GMT
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
> <hossman_lucene@fucit.org>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


Mime
View raw message