Excluding facet range if no value


(my3sons) #1

Is there something similar to the terms facet directive "all_terms" : true for range facets? I would like to NOT return any ranges that do not have a hit associated to them.


(Shay Banon) #2

Can't you ignore the ones with 0 count?

On Mon, Mar 26, 2012 at 2:19 PM, my3sons carey.boldenow@gmail.com wrote:

Is there something similar to the terms facet directive "all_terms" : true
for range facets? I would like to NOT return any ranges that do not have a
hit associated to them.

--
View this message in context:
http://elasticsearch-users.115913.n3.nabble.com/excluding-facet-range-if-no-value-tp3857993p3857993.html
Sent from the ElasticSearch Users mailing list archive at Nabble.com.


(my3sons) #3

Certainly we can do that, I was just hoping to not have any code at the
front-end to deal with that.

On Tuesday, March 27, 2012 8:13:44 AM UTC-5, kimchy wrote:

Can't you ignore the ones with 0 count?

On Mon, Mar 26, 2012 at 2:19 PM, my3sons wrote:

Is there something similar to the terms facet directive "all_terms" : true
for range facets? I would like to NOT return any ranges that do not have a
hit associated to them.

--
View this message in context:
http://elasticsearch-users.115913.n3.nabble.com/excluding-facet-range-if-no-value-tp3857993p3857993.html
Sent from the ElasticSearch Users mailing list archive at Nabble.com.


(Shay Banon) #4

I see, there is no option to exclude 0 count ranges from the range
facet..., so you need to exclude it yourself....

On Tue, Mar 27, 2012 at 4:24 PM, my3sons carey.boldenow@gmail.com wrote:

Certainly we can do that, I was just hoping to not have any code at the
front-end to deal with that.

On Tuesday, March 27, 2012 8:13:44 AM UTC-5, kimchy wrote:

Can't you ignore the ones with 0 count?

On Mon, Mar 26, 2012 at 2:19 PM, my3sons wrote:

Is there something similar to the terms facet directive "all_terms" :
true
for range facets? I would like to NOT return any ranges that do not have
a
hit associated to them.

--
View this message in context: http://elasticsearch-users.**
115913.n3.nabble.com/excluding-facet-range-if-no-
value-tp3857993p3857993.htmlhttp://elasticsearch-users.115913.n3.nabble.com/excluding-facet-range-if-no-value-tp3857993p3857993.html
Sent from the ElasticSearch Users mailing list archive at Nabble.com.


(system) #5