Elasticsearch aggregation on multi-values field?

Hi It seems if the field has multi-values (separate by ",") then when doing aggregation it will cause discrepancy.

Is there a way to have correct numbers?

Can you provide some more detail on your issue? Please include as much detail as possible including:

  • A Sample document
  • The mapping for you index
  • The query you are trying to run
  • An explanation of why you think there is a discrepancy between what you expect and the response you see
  • The response JSON from your query

Since this will be quite a lot of JSON to paste here, please instead paste the JSON requests and responses in a Gist and link to it here.


This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.