ou,
Albert
--
View this message in context:
http://www.nabble.com/FIltering-with-booleanFilter-tp20679609p20679609.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: [EMAIL PROTECT
t; hits = searcher.search(multiSearchQuery,booleanFilter, Sort.RELEVANCE);
>
> but nothing happens I get the same results with or without filter.
> I can see in the recorset the filtered codes.
>
> What's wrong with the booleanFilter?
>
> Thank you,
> Albert
> --
&
t:
>>
>> hits = searcher.search(multiSearchQuery,booleanFilter, Sort.RELEVANCE);
>>
>> but nothing happens I get the same results with or without filter.
>> I can see in the recorset the filtered codes.
>>
>&
>TermsFilter tf = new TermsFilter();
> >>tf.addTerm(new Term(field, text));
> >>return tf;
> >>}
> >>
> >> and I use it:
> >>
> >> hits = searcher.search(multiSearchQuery,booleanFilter, Sort.RELEVANCE);
&
;
>> >> public TermsFilter getTermsFilter(String field, String text) {
>> >> TermsFilter tf = new TermsFilter();
>> >>tf.addTerm(new Term(field, text));
>> >&