AQuery q1 = new LazyParsedQuery("this is my query"); AQuery q2 = new PayloadQuery("date"); AQuery finalQuery = new AndQuery(q1,q2); searcher.search(finalQuery,...);Note that using an AndQuery will make documents without a payload on field "fieldName" be ommitted on the results. Payloads then will be processed by the similarity assigned to "fieldName" on SimilarityForwarder. @author Flaptor Development Team
|
|
|
|
|
|