meilisearch-java icon indicating copy to clipboard operation
meilisearch-java copied to clipboard

Add new code-samples requested by the Meilisearch v0.29 release

Open brunoocasali opened this issue 2 years ago • 1 comments

⚠️ This issue is generated, it means the examples and the namings do not necessarily correspond to the language of this repository. Also, if you are a maintainer, please add any clarification and instructions about this issue.

Sorry if this is already wholly/partially implemented. Feel free to let me know about the state of this issue in the repo.

Related to https://github.com/meilisearch/integration-guides/issues/213


Add the new code samples into the file .code-samples.meilisearch.yml:

TODO:

  • [ ] Add search_parameter_guide_matching_strategy_1
    • Search for big fat liar with "matchingStrategy": "last" in a movies index.
  • [ ] Add search_parameter_guide_matching_strategy_2
    • Search for big fat liar with "matchingStrategy": "all" in a movies index.

For example, in Javascript, the code-samples required to fix the issue are:

client.index('movies').search('big fat liar', { matchingStrategy: 'last' }) and also client.index('movies').search('big fat liar', { matchingStrategy: 'all' })

so the final version inside of the samples should be:

search_parameter_guide_matching_strategy_1: |-
  client.index('movies').search('big fat liar', { matchingStrategy: 'last' })
search_parameter_guide_matching_strategy_2: |-
  client.index('movies').search('big fat liar', { matchingStrategy: 'all' })

brunoocasali avatar Oct 18 '22 20:10 brunoocasali

To be done, only after the #425

brunoocasali avatar Oct 18 '22 20:10 brunoocasali