elastic / connectors-ruby

Official Connector Clients for Elastic Elasticsearch, Enterprise Search, App Search and Workplace Search
https://www.elastic.co/guide/en/enterprise-search/master/index.html
Other
9 stars 17 forks source link

[Filtering] Allow custom error messages for custom type matching functions #512

Closed timgrein closed 1 year ago

timgrein commented 1 year ago

Closes https://github.com/elastic/enterprise-search-team/issues/3355

This PR introduces a second return value for custom type matching functions allowing to specify a custom error message. The error message is specified within a custom type matching function to have at most information possible (value passed to the type matcher function).

Checklists

Pre-Review Checklist

github-actions[bot] commented 1 year ago

💔 Failed to create backport PR(s)

The backport operation could not be completed due to the following error: There are no branches to backport to. Aborting.

The backport PRs will be merged automatically after passing CI.

To backport manually run: backport --pr 512 --autoMerge --autoMergeMethod squash