Skip to content
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

v1.3: Code sample changes #282

Closed
maryamsulemani97 opened this issue Jun 19, 2023 · 3 comments
Closed

v1.3: Code sample changes #282

maryamsulemani97 opened this issue Jun 19, 2023 · 3 comments
Labels
documentation Improvements or additions to documentation

Comments

@maryamsulemani97
Copy link

maryamsulemani97 commented Jun 19, 2023

To be transferred to the integration-guides repo on 2023-07-24

  1. Add new code sample facet_search_1 v1.3: search for facet values+sort facet values documentation#2472
  -X POST 'http://localhost:7700/indexes/books/facet-search' \
  -H 'Content-Type: application/json' \
  --data-binary '{ 
    "facetQuery": "fiction",
    "facetName": "genres",
    "filter": "rating > 3"
  }'
  1. Add new code sample facet_search_2 v1.3: search for facet values+sort facet values documentation#2472
  -X PATCH 'http://localhost:7700/indexes/books/settings/faceting' \
  -H 'Content-Type: application/json' \
  --data-binary '{
    "sortFacetValuesBy": {
      "genres": "count"
  }
}'
  1. Add new code sample facet_search_3 v1.3: search for facet values+sort facet values documentation#2472
  -X POST 'http://localhost:7700/indexes/books/facet-search' \
  -H 'Content-Type: application/json' \
  --data-binary '{ 
    "facetQuery": "c",
    "facetName": "genres"
}'
  1. Add new code sample search_parameter_guide_show_ranking_score_1 v1.3: add ranking rules details documentation#2476
    -X POST 'http://localhost:7700/indexes/movies/search' \
    -H 'Content-Type: application/json' \
    --data-binary '{
      "q": "dragon",
      "showRankingScore": true
    }'
  1. Add new code sample search_parameter_guide_attributes_to_search_on_1 v1.3: attributesToSearchOn documentation#2480
    -X POST 'http://localhost:7700/indexes/movies/search' \
    -H 'Content-Type: application/json' \
    --data-binary '{
      "q": "adventure",
      "attributesToSearchOn": ["overview"]
    }'
  1. Update getting_started_faceting v1.3: search for facet values+sort facet values documentation#2472
  -X PATCH 'http://localhost:7700/indexes/movies/settings/faceting' \ 
  -H 'Content-Type: application/json' \
  --data-binary '{
    "maxValuesPerFacet": 2,
     "sortFacetValuesBy": {
       "*": "count"
     }
  }'
  1. Update update_faceting_settings_1 v1.3: search for facet values+sort facet values documentation#2472
  -X PATCH 'http://localhost:7700/indexes/books/settings/faceting' \
  -H 'Content-Type: application/json' \
  --data-binary '{
    "maxValuesPerFacet": 2,
    "sortFacetValuesBy": {
      "*": "alpha",
      "genres": "count"
    }
  }'

8. Add new code sample get_experimental_features_1 meilisearch/documentation#2496

   -X GET 'http://localhost:7700/experimental-features/'

9. Add new code sample update_experimental_features_1 meilisearch/documentation#2496

  -X PATCH 'http://localhost:7700/experimental-features/' \
  -H 'Content-Type: application/json'  \
  --data-binary '{
    "scoreDetails": true
  }'
@maryamsulemani97
Copy link
Author

@brunoocasali

Can you please transfer these to the integrations guide repo?

Thanks!

@brunoocasali brunoocasali transferred this issue from meilisearch/documentation Jul 31, 2023
@brunoocasali
Copy link
Member

@maryamsulemani97 we will not have experimental features handling on the SDK, ok? So, no code-samples about them.

meili-bors bot added a commit to meilisearch/meilisearch-js that referenced this issue Aug 2, 2023
1551: Update code-samples for Meilisearch v1.3 r=brunoocasali a=bidoubiwa

Update code-samples accordingly to these changes: meilisearch/integration-guides#282

Co-authored-by: Charlotte Vermandel <[email protected]>
@brunoocasali
Copy link
Member

Implemented in the tier 1 SDKs. Closing this issue. The remaining SDKs will receive new issues to track this change internally.

@brunoocasali brunoocasali added the documentation Improvements or additions to documentation label Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants