-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Add rule retriever yaml test with empty indices #125161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add rule retriever yaml test with empty indices #125161
Conversation
|
Pinging @elastic/search-eng (Team:SearchOrg) |
|
Pinging @elastic/search-relevance (Team:Search - Relevance) |
| private static final NodeFeature TEST_RERANKING_SERVICE_PARSE_TEXT_AS_SCORE = new NodeFeature( | ||
| "test_reranking_service.parse_text_as_score" | ||
| ); | ||
| private static final NodeFeature TEST_RULE_RETRIEVER_WITH_EMPTY_INDEX = new NodeFeature("test_rule_retriever.with_empty_index"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I couldn't find the feature this was fixed in, so I added a new test feature.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One nit comment about names. Also, should we backport this to 8.19?
| private static final NodeFeature TEST_RERANKING_SERVICE_PARSE_TEXT_AS_SCORE = new NodeFeature( | ||
| "test_reranking_service.parse_text_as_score" | ||
| ); | ||
| private static final NodeFeature TEST_RULE_RETRIEVER_WITH_EMPTY_INDEX = new NodeFeature("test_rule_retriever.with_empty_index"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: this isn't a great description of the issue as the index isn't empty. Is there a more accurate feature name we can use?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean, technically it's empty in the result set, but I'll make a more verbose name 😜
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Empty result set" is more descriptive, thank you :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also I didn't backport it because I wasn't sure of the fix. It's just an aadditional test though so I think it's OK.
* Add rule retriever yaml test with empty indices * Add more specificity to NodeFeature name
* Add rule retriever yaml test with empty indices * Add more specificity to NodeFeature name
See: SEARCH-910