8000 ES Search returns error when no dashboard has any tags · Issue #107 · grafana/grafana · GitHub
[go: up one dir, main page]

Skip to content
ES Search returns error when no dashboard has any tags #107
@rsommer

Description

@rsommer

Hi,

after upgrading to v1.3.0 the dashboard search is corrupted. We get a HTTP 500:

{"error":"SearchPhaseExecutionException[Failed to execute phase [query], total failure; shardFailures {[PWPjfOohQOaWTDxieMH8aA][grafana-dash][1]: SearchParseException[[grafana-dash][1]: query[title:*],from[-1],size[-1],sort[<custom:\"_uid\": org.elasticsearch.index.fielddata.fieldcomparator.BytesRefFieldComparatorSource@221a9130>]: Parse Failure [Failed to parse source [{\"query\":{\"query_string\":{\"query\":\"title:*\"}},\"sort\":[\"_uid\"],\"facets\":{\"tags\":{\"terms\":{\"field\":\"tags\",\"order\":\"term\",\"size\":50}}},\"size\":50}]]]; nested: FacetPhaseExecutionException[Facet [tags]: failed to find mapping for [tags]]; }{[PWPjfOohQOaWTDxieMH8aA][grafana-dash][3]: SearchParseException[[grafana-dash][3]: query[title:*],from[-1],size[-1],sort[<custom:\"_uid\": org.elasticsearch.index.fielddata.fieldcomparator.BytesRefFieldComparatorSource@6ba26691>]: Parse Failure [Failed to parse source [{\"query\":{\"query_string\":{\"query\":\"title:*\"}},\"sort\":[\"_uid\"],\"facets\":{\"tags\":{\"terms\":{\"field\":\"tags\",\"order\":\"term\",\"size\":50}}},\"size\":50}]]]; nested: FacetPhaseExecutionException[Facet [tags]: failed to find mapping for [tags]]; }]","status":500}

The POST-body from grafana lokks like this:

{"query":{"query_string":{"query":"title:*"}},"sort":["_uid"],"facets":{"tags":{"terms":{"field":"tags","order":"term","size":50}}},"size":50}

I'll try to find some time for looking into the changes from 1.2.0 to 1.3.0 ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0