You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by madmarrie <ma...@gmail.com> on 2013/04/01 19:28:25 UTC

Custom Request Handler: creating queries with "group by" clauses

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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org