[Enhancement] Add description in Search Configuration#293
[Enhancement] Add description in Search Configuration#293martin-gaievski merged 3 commits intoopensearch-project:mainfrom
Conversation
Signed-off-by: vibrantvarun <jainvarun4996@gmail.com>
Signed-off-by: vibrantvarun <jainvarun4996@gmail.com>
epugh
left a comment
There was a problem hiding this comment.
LGTM. We need to also modify the front end to support this ;-).
| (String) source.get("query"), | ||
| (String) source.get("searchPipeline") | ||
| (String) source.get("searchPipeline"), | ||
| (String) source.get("description") |
There was a problem hiding this comment.
we have a weird mix of using constants and strings through this code base. Not asking you to change this here, since it follows the pattern, more noting it as a potential refactoring opportunity in the future!
| ); | ||
| } | ||
|
|
||
| String description = (String) source.get(DESCRIPTION); |
There was a problem hiding this comment.
Here is an example where we swapped back to a constant ;-(.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #293 +/- ##
===========================
===========================
☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
martin-gaievski
left a comment
There was a problem hiding this comment.
Overall code looks good. Few comments:
- please add description to at least one of existing integ tests, corresponding requests are in this resource folder resources/searchconfig/CreateSearchConfiguration.json. Then add the assert logic for the new description. One of the straightforward tests for this change is this test class: java/org/opensearch/searchrelevance/action/searchConfiguration/SearchConfigurationIT.java
- are you going to add UI part as well?
Signed-off-by: vibrantvarun <jainvarun4996@gmail.com>
|
@martin-gaievski added integ test now. |
martin-gaievski
left a comment
There was a problem hiding this comment.
Looks good, thank you
|
Did we miss adding the attribute |
Good catch. We need to add the field there. Also, as far as I know, the current logic only creates the index if it doesn’t exist. However, we also need to update the index when its mapping is outdated. @vibrantvarun could you follow up here? |
…arch-project#293)" This reverts commit ba08bdb. Signed-off-by: Heemin Kim <heemin@amazon.com>
|
Reverted the commit to avoid the release of the PR without fix. #309 |
|
@vibrantvarun Hi Varun, a quick check on this, did we have any follow up PR to address index mapping update issue? Another PR #264 is currently blocked to merge because we add two new fields in judgment_cache.json |
Description
Add description support in Search Configuration similar to QuerySets and JudgeMents.
Issues Resolved
281
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.