Facet pagination

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Facet pagination

Avlesh Singh
Is there a way to get *total count of facets* per field?

Meaning, if my facets are -
<lst name="facet_fields">
    <lst name="first_char">
        <int name="s">305807</int>
        <int name="d">264748</int>
        <int name="p">181084</int>
        <int name="m">130546</int>
        <int name="r">98544</int>
        <int name="b">82741</int>
        <int name="k">77157</int>
    </lst>
</lst>

Then, is the underneath possible?
<lst name="first_char" *totalFacetCount="7'*>
where 7 is the count of all facets available. In this example - s, d, p, m,
r, b and k.

I need this to fetch paginated facets of a field for a given query; not by
doing next-previous.

Cheers
Avlesh
Reply | Threaded
Open this post in threaded view
|

Re: Facet pagination

hossman

: Is there a way to get *total count of facets* per field?

sorry, no.  you can skip ahead, but the only way to know when you're done
is when you stop getting constraints back for that field.




-Hoss