Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
377: add SearchRaw to return raw JSON from search r=alallema a=ginglis13 adds a method SearchRaw with the same signature as Search except it returns json.RawMessage # Pull Request ## Related issue Fixes #337 ## What does this PR do? - add `SearchIndexRaw` to index interface as a method to return a `json.RawMessage` from a search - adds unit test for the method. The test has a `want` of type `SearchResponse`; this is because to verify the method, the test is unmarshalling the raw response returned into a `SearchResponse` ## PR checklist Please check if your PR fulfills the following requirements: - [X] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)? - [X] Have you read the contributing guidelines? - [X] Have you made sure that the title is accurate and descriptive of the changes? Thank you so much for contributing to Meilisearch! Co-authored-by: Gavin Inglis <giinglis@amazon.com> Co-authored-by: Amélie <alallema@users.noreply.github.com>
- Loading branch information
Showing
3 changed files
with
142 additions
and
38 deletions.
There are no files selected for viewing
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