Hi, The facet component works with the whole result set, so you can't get the facets for your topN documents. A naive way you can fulfill your requirement is two implement it in two steps:
- Request your data and recover the doc ids. - Create a new query with the selected ids (id:id1 OR id:id2 OR ... OR id:100) and facet over the result. Regards. On Wed, Feb 25, 2015 at 10:34 AM, kakes <junkkak...@gmail.com> wrote: > We are trying to limit the number of facets returned only to the top 100 > docs > and not the complete result set.. > > Is there a way of accessing topDocs in the custom Faceting component? > or > Can the scores of the docID's in the resultset be accessed in the Facet > Component? > > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Facet-on-TopDocs-tp4188767.html > Sent from the Solr - User mailing list archive at Nabble.com. >