Replicating TermsFacet functionality with aggregations


(Brian Hudson) #1

Loving aggregations so far, great work guys.

I'm trying to convert some code I have which uses TermsFacet to use
aggregations instead, however I am not sure how to replicate the
TermFacet.getOtherCount() functionality.To replicate
TermsFacet.getMissingCount() I am simply adding a "missing" aggregation,
but I don't see any aggregation equivalent for other count.

Does anyone have any suggestions on how to replicate this functionality
using aggregations?

Brian

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/4931eb6f-5b30-4baf-aa42-4092ea4e6156%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


(Adrien Grand) #2

Indeed, I don't think this is possible with aggregations right now. Can you
open an issue on Github?

On Wed, Feb 12, 2014 at 6:38 PM, Brian Hudson brian.r.hudson@gmail.comwrote:

Loving aggregations so far, great work guys.

I'm trying to convert some code I have which uses TermsFacet to use
aggregations instead, however I am not sure how to replicate the
TermFacet.getOtherCount() functionality.To replicate
TermsFacet.getMissingCount() I am simply adding a "missing" aggregation,
but I don't see any aggregation equivalent for other count.

Does anyone have any suggestions on how to replicate this functionality
using aggregations?

Brian

--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/4931eb6f-5b30-4baf-aa42-4092ea4e6156%40googlegroups.com
.
For more options, visit https://groups.google.com/groups/opt_out.

--
Adrien Grand

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j6WRm-0Am2CisuJH-k%3DS3JnFsZvz7Ps1R%2Bq543wVho_TA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


(Eric Jain) #3

On Thursday, February 13, 2014 3:31:34 PM UTC-8, Adrien Grand wrote:

Indeed, I don't think this is possible with aggregations right now. Can
you open an issue on Github?

On Wed, Feb 12, 2014 at 6:38 PM, Brian Hudson <brian.r...@gmail.com
<javascript:>> wrote:

Loving aggregations so far, great work guys.

I'm trying to convert some code I have which uses TermsFacet to use
aggregations instead, however I am not sure how to replicate the
TermFacet.getOtherCount() functionality.To replicate
TermsFacet.getMissingCount() I am simply adding a "missing" aggregation,
but I don't see any aggregation equivalent for other count.

Does anyone have any suggestions on how to replicate this functionality
using aggregations?

Brian

--
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 elasticsearc...@googlegroups.com <javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/4931eb6f-5b30-4baf-aa42-4092ea4e6156%40googlegroups.com
.
For more options, visit https://groups.google.com/groups/opt_out.

--
Adrien Grand

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/b48fb844-ab5b-4005-875d-2f84e9bae77f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(system) #4