FIltering with booleanFilter

2008-11-25 Thread Albert Juhe
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

Re: FIltering with booleanFilter

2008-11-25 Thread Ian Lea
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 > -- &

Re: FIltering with booleanFilter

2008-11-26 Thread Albert Juhe
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. >> >&

Re: FIltering with booleanFilter

2008-11-26 Thread prabin meitei
>TermsFilter tf = new TermsFilter(); > >>tf.addTerm(new Term(field, text)); > >>return tf; > >>} > >> > >> and I use it: > >> > >> hits = searcher.search(multiSearchQuery,booleanFilter, Sort.RELEVANCE); &

Re: FIltering with booleanFilter

2008-11-27 Thread Albert Juhe
; >> >> public TermsFilter getTermsFilter(String field, String text) { >> >> TermsFilter tf = new TermsFilter(); >> >>tf.addTerm(new Term(field, text)); >> >&