Skip to content

Commit

Permalink
Adding comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
jzonthemtn committed Dec 2, 2024
1 parent e484582 commit 32a0a5d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ public QuerySetRunResult run(final String querySetId, final String judgmentsId)

try {

// TODO: Don't use .get()
final SearchResponse searchResponse = client.search(getQuerySetSearchRequest).get();

// The queries from the query set that will be run.
Expand All @@ -69,9 +70,11 @@ public QuerySetRunResult run(final String querySetId, final String judgmentsId)
// Loop over each query in the map and run each one.
for (final String query : queryMap.keySet()) {

// TODO: Allow the user to pass these values in.
final String index = "ecommerce";
final String idField = "asin";

// TODO: Allow the user to pass this in.
final String q = "{\n" +
" \"query\": {\n" +
" \"match\": {\n" +
Expand Down Expand Up @@ -123,7 +126,6 @@ public void onFailure(Exception ex) {
}
});


}

}
Expand Down

0 comments on commit 32a0a5d

Please sign in to comment.