Hi,
I have a doubt in case of Facets. For the Facets in which the
size was unaware, For Example
searchRequestBuilder.addFacet(FacetBuilders.termsFacet("namecount").field("namesort").size(10);
response = searchRequestBuilder.execute().actionGet();
Here I get only 10 Facets. Is there any other method to get the entire
Facets in which the size is unaware or the facets for the complete
response?.
Let us consider,
Name Value
A 11
B 3
A 4
C 7
C 4
D 33
.
.
.
.
etc
For this if I want to get the Facets of size 3
searchRequestBuilder.addFacet(FacetBuilders.termsFacet("namecount").field("namesort").size(3);
response = searchRequestBuilder.execute().actionGet();
I will get the Facets as
"facets" : {
"namecount" : {
"_type" : "terms",
"missing" : 0,
"total" : 280,
"other" : 0,
"terms" : [ {
"term" : "",
"count" : 259
}, {
"term" : "A",
"count" :2
}, {
"term" : "C",
"count" : 2
}, {
"term" : "B",
"count" : 1
},
Here the count of D is Missing...Is there any other method to get the
Facets of all response?
Cheers!!
George