lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peter360 <>
Subject top documented in faceted query?
Date Fri, 02 May 2008 00:42:45 GMT

The faceted query returns a list of values with associated doc count.  Is it
possible to also get the top document id associated with each value? 
Basically I want a "representative" for each facet group.  What is the best
way to achieve this?

To be more precise, suppose the query "q=x&facet=true&facet.field=f" yields
the following result:
<lst name="facet_fields">
<list name="f">
<str name="a">100</str>
<str name="b">90</str>
<str name="c">90</str>

I could then get the top document for each value by issuing a sequence of

Is there a way to do this in one query?

View this message in context:
Sent from the Solr - User mailing list archive at

View raw message