lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Naber <lucenelist2...@danielnaber.de>
Subject Re: Simple Filter-Question
Date Sun, 30 Dec 2007 10:41:21 GMT
On Sonntag, 30. Dezember 2007, Dominik Bruhn wrote:

> I know this is the wrong approach and that the right solution should be
> a Filter. But I dont know which filter to use and how.

The simplest approach is probably to wrap your limiting query with this 
class: 
http://lucene.apache.org/java/2_2_0/api/org/apache/lucene/search/QueryWrapperFilter.html

Then use that filter by calling an IndexSearcher.search() method that also 
takes a filter.

Regards
 Daniel

-- 
http://www.danielnaber.de

---------------------------------------------------------------------
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