I'm looking to query an index for groups by a specific key. There are
documents that have nil values in in these queries, and by default ES
doesn't return these records in the aggregations key of the response.
I've tried applying a missing filter, and it looks like the hits key in
the response includes all the records, but the aggregations key does not.
What is a good strategy for this? Will I have to post process these
results? Index blank strings for nil values?
I'm looking to query an index for groups by a specific key. There are
documents that have nil values in in these queries, and by default ES
doesn't return these records in the aggregations key of the response.
I've tried applying a missing filter, and it looks like the hits key
in the response includes all the records, but the aggregations key does
not.
What is a good strategy for this? Will I have to post process these
results? Index blank strings for nil values?
You would need to use a placeholder value. So if you know the value is NULL
or empty then insert the document with a string value of NIL or N/A or
something...
On Wednesday, 4 February 2015 20:41:18 UTC-5, Mehul Kar wrote:
Ideally, I'd like to see these records grouped under a nil key or
something automatically.
Mehul Kar @mehulkar
On Wed, Feb 4, 2015 at 5:31 PM, Mehul Kar <mehu...@gmail.com <javascript:>
wrote:
Hello,
I'm looking to query an index for groups by a specific key. There are
documents that have nil values in in these queries, and by default ES
doesn't return these records in the aggregations key of the response.
I've tried applying a missing filter, and it looks like the hits key
in the response includes all the records, but the aggregations key does
not.
What is a good strategy for this? Will I have to post process these
results? Index blank strings for nil values?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.