-
Notifications
You must be signed in to change notification settings - Fork 0
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
Getting judgments for metrics calculation. Improving error handling and validation. #50
Conversation
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.
Good progress... I wonder, is there a CLI for opensearch and opensearch plugins that we should be wired into? in place of the various .sh scripts that we end up generating cause the REST api is too many calls ;-)
data/esci/index.sh
Outdated
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 wonder if we shoulid call this dir sample-data
to reflect that it isn't "real data shipped with the plugin"?
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.
Agreed. This is kind of what sparked my thought about having data external. I don't want another repo, but it's almost to the point where putting data somewhere else would be helpful.
@@ -329,7 +333,7 @@ public String indexJudgments(final Collection<Judgment> judgments) throws Except | |||
final Map<String, Object> judgmentsSource = new HashMap<>(); | |||
judgmentsSource.put("judgments", j); | |||
|
|||
final IndexRequest indexRequest = new IndexRequest(INDEX_JUDGMENTS) | |||
final IndexRequest indexRequest = new IndexRequest(JUDGMENTS_INDEX_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.
JUDGEMENTS_INDEX_NAME ;-). J/k.
There is one but I think it's more management stuff. We might be better off making a "search relevance CLI." |
Signed-off-by: jzonthemtn <[email protected]>
Signed-off-by: jzonthemtn <[email protected]>
Signed-off-by: jzonthemtn <[email protected]>
Getting judgments for metrics calculation. Improving error handling and validation