Skip to content

Add matching pattern to error in fields (backport of #76903)#77191

Merged
nik9000 merged 1 commit intoelastic:7.xfrom
nik9000:fields_error_include_name_7_x
Sep 2, 2021
Merged

Add matching pattern to error in fields (backport of #76903)#77191
nik9000 merged 1 commit intoelastic:7.xfrom
nik9000:fields_error_include_name_7_x

Conversation

@nik9000
Copy link
Copy Markdown
Member

@nik9000 nik9000 commented Sep 2, 2021

This adds the pattern into the error message returned when trying to
fetch fields. So this:

POST _search {
  "fields": [ { "field": "*", "format": "date_time" } ]
}

Will return an error message like

error fetching [foo] which matches [*]: Field [foo] of type [keyword] doesn't support formats

This adds the pattern into the error message returned when trying to
fetch fields. So this:
```
POST _search {
  "fields": [ { "field": "*", "format": "date_time" } ]
}
```

Will return an error message like
```
error fetching [foo] which matches [*]: Field [foo] of type [keyword] doesn't support formats
```
@nik9000 nik9000 merged commit e8bb9ea into elastic:7.x Sep 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant