Stats on Missing Facet

For a faceted query, I'm returning data as a table showing the key_field,
counts, and min/max of the value_field. It's required to show the min/max
of the value field even for the group that has the facet key_field null. In
this case, facet.getMissingCount() isn't enough. Is there currently a way
to get the min/max (or other stats) for the missing case loaded as a facet?

You can open an issue to support it, for now, you can simply index a value
that represents null.

On Tue, Nov 22, 2011 at 7:15 PM, Michael Sick <
michael.sick@serenesoftware.com> wrote:

For a faceted query, I'm returning data as a table showing the key_field,
counts, and min/max of the value_field. It's required to show the min/max
of the value field even for the group that has the facet key_field null. In
this case, facet.getMissingCount() isn't enough. Is there currently a way
to get the min/max (or other stats) for the missing case loaded as a facet?

Opened at: Request: Facet for Missing Term on TermStatsFacet · Issue #1491 · elastic/elasticsearch · GitHub

On Wed, Nov 23, 2011 at 10:42 AM, Shay Banon kimchy@gmail.com wrote:

You can open an issue to support it, for now, you can simply index a value
that represents null.

On Tue, Nov 22, 2011 at 7:15 PM, Michael Sick <
michael.sick@serenesoftware.com> wrote:

For a faceted query, I'm returning data as a table showing the key_field,
counts, and min/max of the value_field. It's required to show the min/max
of the value field even for the group that has the facet key_field null. In
this case, facet.getMissingCount() isn't enough. Is there currently a way
to get the min/max (or other stats) for the missing case loaded as a facet?

I tried reindexing using the null_value option:

aud_tran_typ_id: {
include_in_all: true
index: not_analyzed
store: yes
null_value: eas.missing
type: string
}

but the value does not end up in my facet counts. Should it or should I
have to add the default value in my code?

On Wed, Nov 23, 2011 at 11:23 AM, Michael Sick <
michael.sick@serenesoftware.com> wrote:

Opened at: Request: Facet for Missing Term on TermStatsFacet · Issue #1491 · elastic/elasticsearch · GitHub

On Wed, Nov 23, 2011 at 10:42 AM, Shay Banon kimchy@gmail.com wrote:

You can open an issue to support it, for now, you can simply index a
value that represents null.

On Tue, Nov 22, 2011 at 7:15 PM, Michael Sick <
michael.sick@serenesoftware.com> wrote:

For a faceted query, I'm returning data as a table showing the
key_field, counts, and min/max of the value_field. It's required to show
the min/max of the value field even for the group that has the facet
key_field null. In this case, facet.getMissingCount() isn't enough. Is
there currently a way to get the min/max (or other stats) for the missing
case loaded as a facet?

Apologies, works fine. All trouble the result of overly fat fingers.

On Fri, Nov 25, 2011 at 11:11 AM, Michael Sick <
michael.sick@serenesoftware.com> wrote:

I tried reindexing using the null_value option:

aud_tran_typ_id: {
include_in_all: true
index: not_analyzed
store: yes
null_value: eas.missing
type: string
}

but the value does not end up in my facet counts. Should it or should I
have to add the default value in my code?

On Wed, Nov 23, 2011 at 11:23 AM, Michael Sick <
michael.sick@serenesoftware.com> wrote:

Opened at: Request: Facet for Missing Term on TermStatsFacet · Issue #1491 · elastic/elasticsearch · GitHub

On Wed, Nov 23, 2011 at 10:42 AM, Shay Banon kimchy@gmail.com wrote:

You can open an issue to support it, for now, you can simply index a
value that represents null.

On Tue, Nov 22, 2011 at 7:15 PM, Michael Sick <
michael.sick@serenesoftware.com> wrote:

For a faceted query, I'm returning data as a table showing the
key_field, counts, and min/max of the value_field. It's required to show
the min/max of the value field even for the group that has the facet
key_field null. In this case, facet.getMissingCount() isn't enough. Is
there currently a way to get the min/max (or other stats) for the missing
case loaded as a facet?