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> ... </lst> </lst> ... I could then get the top document for each value by issuing a sequence of queries q=x&fq=f:a&row=1 q=x&fq=f:b&row=1 q=x&fq=f:c&row=1 ... Is there a way to do this in one query? Thanks. -- View this message in context: http://www.nabble.com/top-documented-in-faceted-query--tp16996445p16996445.html Sent from the Solr - User mailing list archive at Nabble.com.