>From a usability standpoint, it is better to show no facet if there's no
content for it. Users are not always the sharpest tools in the shed. If
they see a facet, they expect it to do something.

The only way around this is to have a list of all possible facets either
stored or by querying, as you mentioned, then render the list with the
counts.
On May 10, 2012 5:31 AM, "Jakob Fix" <[email protected]> wrote:

> Hi,
>
> I'm doing the usual application where you have the facets listed on
> the side of the search results and you can select from there one (or
> more) to filter the results.
>
> However, search:search only returns the facet values for which it finds
> hits.
>
> Is there a way to return *all* available facet values, even those with
> zero occurrences?
>
> Right now the only way I've found is to call search:search twice and
> then combine the result.
>
> cheers,
> Jakob.
> _______________________________________________
> General mailing list
> [email protected]
> http://developer.marklogic.com/mailman/listinfo/general
>
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to