I'm writing a custom handler, inside which I will run multiple queries and
then merge the results.

This is how I am creating the query:

String q = params.get(CommonParams.Q);//q could be "foo"
......
Query query = new WildcardQuery(new Term( "FieldName", q ));
......
ScoreDoc[] hits = searcher.search(query, 100).scoreDocs;

My question is: How do I take the "q" variable and apply "group by" clauses
so that the results are grouped?









--
View this message in context: 
http://lucene.472066.n3.nabble.com/Custom-Request-Handler-creating-queries-with-group-by-clauses-tp4052961.html
Sent from the Lucene - Java Developer mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to