Skip to content

Commit

Permalink
A few more renaming
Browse files Browse the repository at this point in the history
Signed-off-by: Rabi Panda <adnapibar@gmail.com>
  • Loading branch information
adnapibar committed Mar 24, 2021
1 parent 25ba05b commit 31f41ca
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1130,7 +1130,7 @@ public void testRankEval() throws Exception {
SearchSourceBuilder searchQuery = new SearchSourceBuilder();
searchQuery.query(QueryBuilders.matchQuery("user", "foobar"));// <3>
RatedRequest ratedRequest = // <4>
new RatedRequest("kimchy_query", ratedDocs, searchQuery);
new RatedRequest("foobar_query", ratedDocs, searchQuery);
List<RatedRequest> ratedRequests = Arrays.asList(ratedRequest);
RankEvalSpec specification =
new RankEvalSpec(ratedRequests, metric); // <5>
Expand All @@ -1148,8 +1148,8 @@ public void testRankEval() throws Exception {
Map<String, EvalQueryQuality> partialResults =
response.getPartialResults();
EvalQueryQuality evalQuality =
partialResults.get("kimchy_query"); // <2>
assertEquals("kimchy_query", evalQuality.getId());
partialResults.get("foobar_query"); // <2>
assertEquals("foobar_query", evalQuality.getId());
double qualityLevel = evalQuality.metricScore(); // <3>
assertEquals(1.0 / 3.0, qualityLevel, 0.0);
List<RatedSearchHit> hitsAndRatings = evalQuality.getHitsAndRatings();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
body:
query:
match:
user: otherkimchy
user: otherfoobar
- match: { hits.total: 1 }

---
Expand Down Expand Up @@ -68,7 +68,7 @@
body:
query:
match:
user: otherkimchy
user: otherfoobar
- match: { hits.total: 1 }

- do:
Expand Down Expand Up @@ -160,7 +160,7 @@
body:
query:
match:
user: notkimchy
user: notfoobar
- match: { hits.total: 1 }

- do:
Expand Down Expand Up @@ -252,7 +252,7 @@
body:
query:
match:
user: otherkimchy
user: otherfoobar
- match: { hits.total: 1 }

---
Expand Down Expand Up @@ -291,7 +291,7 @@
body:
query:
match:
user: otherkimchy
user: otherfoobar
- match: { hits.total: 1 }

---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
body:
query:
match:
user: notkimchy
user: notfoobar
- match: { hits.total: 1 }

---
Expand Down Expand Up @@ -54,7 +54,7 @@
body:
query:
match:
user: notkimchy
user: notfoobar
- match: { hits.total: 1 }

---
Expand Down Expand Up @@ -90,7 +90,7 @@
body:
query:
match:
user: notkimchy
user: notfoobar
- match: { hits.total: 1 }

- do:
Expand Down

0 comments on commit 31f41ca

Please sign in to comment.