On Mon, Jul 8, 2013 at 8:18 AM, adfel70 <adfe...@gmail.com> wrote:
> I have a field that's only indexed in some of the documents.
> Can I create a boolean facet on this field by its existence?
> for instance:
> yes(124)
> no(479)
>
> Note that the fields' value is not facetable because all its values are
> unique most of the time.
> I just want to facet on the question whether this information (the field )is
> available or  not.

This will give you the number of documents with any value in that field:
facet.query=myfield:*

You can subtract that number from the number of documents matching the
query to get the no's.

-Yonik
http://lucidworks.com

Reply via email to