Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log failures returned by the Elasticsearch API #28

Open
SPMaibornwolff opened this issue Jul 1, 2019 · 0 comments
Open

Log failures returned by the Elasticsearch API #28

SPMaibornwolff opened this issue Jul 1, 2019 · 0 comments

Comments

@SPMaibornwolff
Copy link

Elcep should log the failures which are returned by the Elasticsearch API.
I.e. a request with a missing configuration for text field aggregation does not fail. Instead it returns a document with failures:
{ "took": 1, "timed_out": false, "_shards": { "total": 2, "successful": 3, "skipped": 4, "failed": 4, "failures": [ { "shard": 0, "index": "index", "node": "node", "reason": { "type": "illegal_argument_exception", "reason": "Fielddata is disabled on text fields by default. Set fielddata=true on [text_field_name] in order to load fielddata in memory by uninverting the inverted index. Note that this can however use significant memory. Alternatively use a keyword field instead." } } ] }, ... }
Such failures should be logged.

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

No branches or pull requests

1 participant