Quantcast

Facets

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Facets

saud.rehman
This post has NOT been accepted by the mailing list yet.
Hi,

I have three indices,

index1, index2 and index3 all have field userId.

index1 = has 4 documents with userId = 12
index2 = has 2 documents with userId = 12
index3 = has 5 documents with userId = 12

When I perform:
curl -X POST "http://localhost:9200/_search " -d '{"facets" : {"tags" : { "terms" : {"field" : "id_user"} } }}'

The facet count I get for userId = 12 is 5.

I am expecting it to show me 11. which is sum of all documents across all three documents with userId = 12.
Loading...