Skip to content
This repository has been archived by the owner on Sep 21, 2021. It is now read-only.

Analytics: Aggregation queries fail #608

Closed
SuzanaK opened this issue Sep 27, 2016 · 0 comments
Closed

Analytics: Aggregation queries fail #608

SuzanaK opened this issue Sep 27, 2016 · 0 comments

Comments

@SuzanaK
Copy link

SuzanaK commented Sep 27, 2016

The queries in the Analytics Chapter fail when executed with this error message:

{
   "error": {
      "root_cause": [
         {
            "type": "illegal_state_exception",
            "reason": "Field data loading is forbidden on [interests]"
         }
      ],
      "type": "search_phase_execution_exception",
      "reason": "all shards failed",
      "phase": "query",
      "grouped": true,
      "failed_shards": [
         {
            "shard": 0,
            "index": "megacorp",
            "node": "1JKN2iW3S_6fveH4AOQJtQ",
            "reason": {
               "type": "illegal_state_exception",
               "reason": "Field data loading is forbidden on [interests]"
            }
         }
      ]
   },
   "status": 500
}

The reason is that _raw must be attached to the field name - see this this issue on Elasticsearch for an explanation.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant