Skip to content

MB-71969 Propagate custom_filter/custom_score callback errors#2344

Merged
maneuvertomars merged 2 commits into
masterfrom
custom-query-error-propagation
Jun 10, 2026
Merged

MB-71969 Propagate custom_filter/custom_score callback errors#2344
maneuvertomars merged 2 commits into
masterfrom
custom-query-error-propagation

Conversation

@maneuvertomars

Copy link
Copy Markdown
Member

CustomFilterFunc and CustomScoreFunc now return an error so a failing
per-hit callback (e.g. a JavaScript exception from an embedder's custom
script) aborts the search and surfaces via SearchStatus.Errors, instead
of silently dropping the hit or falling back to the original score."

@coveralls

coveralls commented Jun 8, 2026

Copy link
Copy Markdown

Coverage Status

coverage: 52.273% (-0.02%) from 52.289% — custom-query-error-propagation into master

Comment thread search/searcher/search_custom_filter.go
@maneuvertomars maneuvertomars merged commit 568dea0 into master Jun 10, 2026
10 checks passed
@maneuvertomars maneuvertomars deleted the custom-query-error-propagation branch June 10, 2026 06:33
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

Successfully merging this pull request may close these issues.

4 participants