I was reading the facet documentation and was wondering if there was a
way that I could get a field count of the documents in my index.
I see that in the examples one specifies a field to count, and then
gets results from that, but I was interested in seeing how many
documents have a field, vs has a particular field value.
So assuming the following data
doc1.field1 = "abc"
doc1.field2 = "123"
doc1.field3 = "fgh"
doc2.field1 = "abc"
doc2.field2 = "123"
doc3.field4 = "123"
it would return
term: abc, count: 2
term: 123, count 3
term: fgh, count 1
I basically want to know what the fields in my documents are because I
have an arbitrary list of fields that can exist.
Is this possible?