lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From madmarrie <>
Subject Custom Request Handler: creating queries with "group by" clauses
Date Mon, 01 Apr 2013 17:28:25 GMT
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 =, 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:
Sent from the Lucene - Java Developer mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message