You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Proposal: Support the filtering rules needed by the EUI SearchBar without coupling the effort to other DSL/AST/query lang initiatives by defining a basic filter schema that will allow basic boolean logic, filtering by terms, and ranges.
Example request body sent to POST /api/saved_objects/_find:
With the current API we could determine the type of the filters without the type: property, but doing that would make for some really lame error messages if the type of the filter can't be determined.
For example, if the user sends:
{ valu: 'foo' }
Then the best error message we'll be able to provide is probably something like:
Unable to determine type of filter { valu: 'foo' }
If instead they sent:
{ type: 'match', valu: 'foo' }
We could really easily send:
invalid property 'valu', valid options are 'field' and 'value'
edit: switched back to implicit type to avoid noise, prevent advertising the name "match", and because the error message below is good enough for my taste
Proposal: Support the filtering rules needed by the EUI SearchBar without coupling the effort to other DSL/AST/query lang initiatives by defining a basic filter schema that will allow basic boolean logic, filtering by terms, and ranges.
Example request body sent to
POST /api/saved_objects/_find
:Tasks:
_
api/saved_objects/bulk_get
toapi/saved_objects/_bulk_get
andapi/saved_objects/{type}
(find) toapi/saved_objects/_find
POST api/saved_objects/_find
The text was updated successfully, but these errors were encountered: