Getting the Facets for infinite or Unknown set of Response

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 I have infinite set of Facets in the response ...Is there any
other method to get the
Facets of all response?

Thanks in Advance

Cheers!!
George

Is there any other method in elasticsearch to get the facets of all
response?

Cheers!!

George

On Mar 19, 2:08 pm, George Viju vijuit...@gmail.com wrote:

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 I have infinite set of Facets in the response ...Is there any
other method to get the
Facets of all response?

Thanks in Advance

Cheers!!George

Hello,

any response about "all" size in termsFacet?

On Tuesday, March 20, 2012 6:02:03 AM UTC-4:30, George Viju wrote:

Is there any other method in elasticsearch to get the facets of all
response?

Cheers!!

George

On Mar 19, 2:08 pm, George Viju vijuit...@gmail.com wrote:

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 I have infinite set of Facets in the response ...Is there any
other method to get the
Facets of all response?

Thanks in Advance

Cheers!!George

--

You can set size to some very big number (2147483647 for example).

On Wednesday, January 23, 2013 2:20:18 PM UTC-5, tfreitas wrote:

Hello,

any response about "all" size in termsFacet?

On Tuesday, March 20, 2012 6:02:03 AM UTC-4:30, George Viju wrote:

Is there any other method in elasticsearch to get the facets of all
response?

Cheers!!

George

On Mar 19, 2:08 pm, George Viju vijuit...@gmail.com wrote:

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 I have infinite set of Facets in the response ...Is there any
other method to get the
Facets of all response?

Thanks in Advance

Cheers!!George

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.