-
Notifications
You must be signed in to change notification settings - Fork 26
Search changes #317
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
Search changes #317
Conversation
|
||
func testSearchFacetsDistributionNullValue() { | ||
func testSearchFacetDistributionNullValue() { | ||
let expectation = XCTestExpectation(description: "Search for Books using facets distribution with 0 value") |
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.
Is the description still relevant?
func testSearchMatches() { | ||
let expectation = XCTestExpectation(description: "Search for Books using matches") | ||
|
||
typealias MeiliResult = Result<SearchResult<Book>, Swift.Error> |
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.
The description above
let expectation = XCTestExpectation(description: "Search for Books using matches")
should become using showMatchesPosition. Sorry I can't make a suggestion on it :(
|
||
func testSearchFacetsDistribution() { | ||
func testSearchFacetDistribution() { | ||
let expectation = XCTestExpectation(description: "Search for Books using facets distribution") |
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.
let expectation = XCTestExpectation(description: "Search for Books using facets distribution") | |
let expectation = XCTestExpectation(description: "Search for Books using facets") |
case .failure(let error): | ||
dump(error) | ||
XCTFail("Failed to search with testSearchFacetsDistribution") | ||
XCTFail("Failed to search with testSearchFacetDistribution") |
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.
XCTFail("Failed to search with testSearchFacetDistribution") | |
XCTFail("Failed to search with testSearchFacetDistributionNullValue") |
Fix breaking changes from 0.28 engine version including:
nbHits
response parameter toestimatedTotalHits
.exhaustiveNbHits
response parameter.exhaustiveFacetsCount
response parameter.matches
request parameter is renamedshowMatchesPosition
._matchesInfo
response parameter is renamed_matchesPosition
.facetsDistribution
request parameter is renamedfacets
.facetsDistribution
response parameter is renamedfacetDistribution
.