Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Lucene: Java-User

ChainedFilter in Lucene 2.9

 

 

Lucene java-user RSS feed   Index | Next | Previous | View Threaded


akaris at gmail

Nov 19, 2009, 8:27 PM

Post #1 of 2 (434 views)
Permalink
ChainedFilter in Lucene 2.9

Hi !

Can someone tell me what is replacing ChainedFilter in Lucene 2.9?

I used to do it like this -

h = searcher.search(q, cluCF, cluSort);

Where cluCF is a ChainedFilter declared like this -

Filter cluCF = new ChainedFilter(cluFilters, ChainedFilter.AND);

cluFilters is a Filter[] containing QueryFilter's and/or RangeFilter's, and
ended with a null index.

But in Lucene 2.9, I can't find ChainedFilter anywhere. Is there still a way
to do this? It's crucial for my application.

Thanks!

- Mike
akaris [at] gmail


rcmuir at gmail

Nov 19, 2009, 8:31 PM

Post #2 of 2 (416 views)
Permalink
Re: ChainedFilter in Lucene 2.9 [In reply to]

Hi, you can find this in 'lucene-misc' contrib jar file

http://lucene.apache.org/java/2_9_1/api/contrib-misc/org/apache/lucene/misc/ChainedFilter.html

On Thu, Nov 19, 2009 at 11:27 PM, Michel Nadeau <akaris [at] gmail> wrote:

> Hi !
>
> Can someone tell me what is replacing ChainedFilter in Lucene 2.9?
>
> I used to do it like this -
>
> h = searcher.search(q, cluCF, cluSort);
>
> Where cluCF is a ChainedFilter declared like this -
>
> Filter cluCF = new ChainedFilter(cluFilters, ChainedFilter.AND);
>
> cluFilters is a Filter[] containing QueryFilter's and/or RangeFilter's, and
> ended with a null index.
>
> But in Lucene 2.9, I can't find ChainedFilter anywhere. Is there still a
> way
> to do this? It's crucial for my application.
>
> Thanks!
>
> - Mike
> akaris [at] gmail
>



--
Robert Muir
rcmuir [at] gmail

Lucene java-user RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.