Skip to content

Commit

Permalink
Merge #620
Browse files Browse the repository at this point in the history
620: Changes related to the next Meilisearch release (v1.3.0) r=alallema a=meili-bot

Related to this issue: meilisearch/integration-guides#280

This PR:
- gathers the changes related to the next Meilisearch release (v1.3.0) so that this package is ready when the official release is out.
- should pass the tests against the [latest pre-release of Meilisearch](https://github.com/meilisearch/meilisearch/releases).
- might eventually contain test failures until the Meilisearch v1.3.0 is out.

⚠️ This PR should NOT be merged until the next release of Meilisearch (v1.3.0) is out.

_This PR is auto-generated for the [pre-release week](https://github.com/meilisearch/integration-guides/blob/main/resources/pre-release-week.md) purpose._


Co-authored-by: meili-bot <74670311+meili-bot@users.noreply.github.com>
Co-authored-by: alallema <amelie@meilisearch.com>
Co-authored-by: Amélie <alallema@users.noreply.github.com>
  • Loading branch information
4 people authored Jul 31, 2023
2 parents b26c103 + 2eb2665 commit f4c9b4b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/test/java/com/meilisearch/integration/SearchTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ public void testSearchHighlight() throws Exception {

assertEquals(20, resGson.hits.length);
assertEquals(
"Harry Potter <em>and</em> the Philosopher's Stone",
"Birds of Prey (<em>and</em> the Fantabulous Emancipation of One Harley Quinn)",
resGson.hits[0].getFormatted().getTitle());
}

Expand Down Expand Up @@ -236,7 +236,7 @@ public void testSearchWithCustomizedHighlight() throws Exception {

assertEquals(20, resGson.hits.length);
assertEquals(
"Harry Potter (⊃。•́‿•̀。)⊃ and ⊂(´• ω •`⊂) the Philosopher's Stone",
"Birds of Prey ((⊃。•́‿•̀。)⊃ and ⊂(´• ω •`⊂) the Fantabulous Emancipation of One Harley Quinn)",
resGson.hits[0].getFormatted().getTitle());
}

Expand Down Expand Up @@ -387,12 +387,12 @@ public void testRawSearchSort() throws Exception {
Results resGson = jsonGson.decode(index.rawSearch(searchRequest), Results.class);

assertEquals(20, resGson.hits.length);
assertEquals("671", resGson.hits[0].getId());
assertEquals("Harry Potter and the Philosopher's Stone", resGson.hits[0].getTitle());
assertEquals("495764", resGson.hits[1].getId());
assertEquals("495764", resGson.hits[0].getId());
assertEquals(
"Birds of Prey (and the Fantabulous Emancipation of One Harley Quinn)",
resGson.hits[1].getTitle());
resGson.hits[0].getTitle());
assertEquals("671", resGson.hits[1].getId());
assertEquals("Harry Potter and the Philosopher's Stone", resGson.hits[1].getTitle());
}

/** Test search sort */
Expand Down

0 comments on commit f4c9b4b

Please sign in to comment.