search - Lucene Filter and Query Concept -


i working on search project in java , i'm using lucene. want filter final search results query user (e.g. "x" , "y") feature of advanced search. search query consists of queries on different parts of news , it's working correctly filter doesn't work i'm using following code:

leadfilter = new querywrapperfilter(new queryparser(lucene_version, index_field_lead, analyzer).parse(advancefilter)); titlefilter = new querywrapperfilter(new queryparser(lucene_version, index_field_title, analyzer).parse(advancefilter));  booleanfilter.add(leadfilter, occur.should);    booleanfilter.add(titlefilter, occur.should);   topdocs = indexsearcher.search(booleanquery, booleanfilter,query.getlimit()); 

maybe have not understood concept of "filter" correctly. please correct me or propose way filter results after search lucene.

thanks in advance


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -