lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From madmarrie <madmar...@gmail.com>
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 = 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


Mime
View raw message