FAQ

On Mon, Jul 8, 2013 at 8:18 AM, adfel70 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

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 2 | next ›
Discussion Overview
groupsolr-user @
categorieslucene
postedJul 8, '13 at 12:18p
activeJul 8, '13 at 12:57p
posts2
users2
websitelucene.apache.org...

2 users in discussion

Yonik Seeley: 1 post Adfel70: 1 post

People

Translate

site design / logo © 2021 Grokbase