Facet on combination of fields

Hi All,

We want to perform facets on combination of fields.

For example:
Lets consider, my index contains two columns: column1 and column2. And we
want to perform facets on combination of fields. Below is the expected
output.

column1 column2 count
abc pqw 10
abc asd 20
asd pqw 12

Please share ways to achieve above scenario in elasticsearch.

Thanks,
Ankit Jain

--
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.

hi,
es can do terms facet against multi fields,
http://www.elasticsearch.org/guide/reference/api/search/facets/terms-facet/

Hey,

check out the terms script feature in the terms facet

--Alex

On Fri, Jun 7, 2013 at 8:33 AM, Ankit Jain ankitjaincs06@gmail.com wrote:

Hi All,

We want to perform facets on combination of fields.

For example:
Lets consider, my index contains two columns: column1 and column2. And we
want to perform facets on combination of fields. Below is the expected
output.

column1 column2 count
abc pqw 10
abc asd 20
asd pqw 12

Please share ways to achieve above scenario in elasticsearch.

Thanks,
Ankit Jain

--
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.

--
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.

It works for me... Thanks you very much.

~Ankit

On Friday, 7 June 2013 13:24:50 UTC+5:30, Alexander Reelsen wrote:

Hey,

check out the terms script feature in the terms facet
Elasticsearch Platform — Find real-time answers at scale | Elastic

--Alex

On Fri, Jun 7, 2013 at 8:33 AM, Ankit Jain <ankitj...@gmail.com<javascript:>

wrote:

Hi All,

We want to perform facets on combination of fields.

For example:
Lets consider, my index contains two columns: column1 and column2. And we
want to perform facets on combination of fields. Below is the expected
output.

column1 column2 count
abc pqw 10
abc asd 20
asd pqw 12

Please share ways to achieve above scenario in elasticsearch.

Thanks,
Ankit Jain

--
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:>.
For more options, visit https://groups.google.com/groups/opt_out.

--
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.