-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allowing user to pass in the query for the query sets.
- Loading branch information
1 parent
32a0a5d
commit 9ce84b4
Showing
4 changed files
with
52 additions
and
27 deletions.
There are no files selected for viewing
15 changes: 14 additions & 1 deletion
15
opensearch-search-quality-evaluation-plugin/scripts/run-query-set.sh
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 |
---|---|---|
@@ -1,5 +1,18 @@ | ||
#!/bin/bash -e | ||
|
||
QUERY_SET_ID="${1}" | ||
JUDGMENTS_ID="12345" | ||
INDEX="ecommerce" | ||
ID_FIELD="asin" | ||
|
||
curl -s -X POST "http://localhost:9200/_plugins/search_quality_eval/run?id=${QUERY_SET_ID}" | jq | ||
curl -s -X POST "http://localhost:9200/_plugins/search_quality_eval/run?id=${QUERY_SET_ID}&judgments_id=${JUDGMENTS_ID}&index=${INDEX}&id_field=${ID_FIELD}" \ | ||
-H "Content-Type: application/json" \ | ||
--data-binary '{ | ||
"query": { | ||
"match": { | ||
"description": { | ||
"query": "#$query##" | ||
} | ||
} | ||
} | ||
}' |
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
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
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