-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add options for what to do with missing metadata fields in `Met…
…aFieldRanker` (#7700) * Add `missing_meta` param to `MetaFieldRanker`, plus checks for validation. * Implement `missing_meta` functionality in `run()`. * Finish first draft of revised `MetaFieldRanker` functionality. * Add tests for `MetaFieldRanker` `missing_meta` functionality. * Add `missing_meta` param to `MetaFieldRanker`, plus checks for validation. * Implement `missing_meta` functionality in `run()`. * Finish first draft of revised `MetaFieldRanker` functionality. * Add tests for `MetaFieldRanker` `missing_meta` functionality. * Add release notes for new `missing_meta` param of `MetaFieldRanker` * Move part of docs_missing_meta_field warning string outside of `if...elif...else`.
- Loading branch information
1 parent
14c7b02
commit 28dd0f5
Showing
3 changed files
with
109 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
releasenotes/notes/metaranker-missing-meta-options-1a969008d632a523.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
features: | ||
- | | ||
Add a new `missing_meta` param to `MetaFieldRanker`, which determines what to do with | ||
documents that lack the ranked meta field. Supported values are `"bottom"` (which | ||
puts documents with missing meta at the bottom of the sorted list), `"top"` (which puts them | ||
at the top), and `"drop"` (which removes them from the results entirely). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters