vivo-community / scholars-discovery

BSD 3-Clause "New" or "Revised" License
2 stars 6 forks source link

Search: add ability to send facet.mincount as parameter #219

Closed nymbyl closed 4 years ago

ghost commented 4 years ago

You can provide pageNumber and pageSize to the FacetArg to paginate the facet entries.

Solr is limited on ability to paginate facet entries. It only offers mincount, therefor scholars-discovery gets all possible facet entries and provides pagination over them.

ghost commented 4 years ago

Is the intent of this issue, to also afford on requesting mincount from Solr and not paginate them?

nymbyl commented 4 years ago

Sorry - just saw your comment. What I was trying to do is allow showing facets with 0 counts - so that when filters are applied - and then other filters are applied that make those inapplicable - the original filters can still hang around as facets with 0 counts.

So - yes - just the mincount - not paginating

ghost commented 4 years ago

I apologize. You are right. These are not the same thing. Also, correction to above. It is Spring Data Solr that does not paginate facet entries properly as facet.offset and facet.limit is offered by Solr.