meilisearch / integration-guides

Central reference for Meilisearch integrations.
https://meilisearch.com
MIT License
134 stars 15 forks source link

v1.3: Code sample changes #282

Closed maryamsulemani97 closed 11 months ago

maryamsulemani97 commented 1 year ago

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

  1. Add new code sample facet_search_1 https://github.com/meilisearch/documentation/pull/2472

    -X POST 'http://localhost:7700/indexes/books/facet-search' \
    -H 'Content-Type: application/json' \
    --data-binary '{ 
      "facetQuery": "fiction",
      "facetName": "genres",
      "filter": "rating > 3"
    }'
  2. Add new code sample facet_search_2 https://github.com/meilisearch/documentation/pull/2472

    -X PATCH 'http://localhost:7700/indexes/books/settings/faceting' \
    -H 'Content-Type: application/json' \
    --data-binary '{
      "sortFacetValuesBy": {
        "genres": "count"
    }
    }'
  3. Add new code sample facet_search_3 https://github.com/meilisearch/documentation/pull/2472

    -X POST 'http://localhost:7700/indexes/books/facet-search' \
    -H 'Content-Type: application/json' \
    --data-binary '{ 
      "facetQuery": "c",
      "facetName": "genres"
    }'
  4. Add new code sample search_parameter_guide_show_ranking_score_1 https://github.com/meilisearch/documentation/pull/2476

    -X POST 'http://localhost:7700/indexes/movies/search' \
    -H 'Content-Type: application/json' \
    --data-binary '{
      "q": "dragon",
      "showRankingScore": true
    }'
  5. Add new code sample search_parameter_guide_attributes_to_search_on_1 https://github.com/meilisearch/documentation/pull/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 https://github.com/meilisearch/documentation/pull/2472
    -X PATCH 'http://localhost:7700/indexes/movies/settings/faceting' \ 
    -H 'Content-Type: application/json' \
    --data-binary '{
      "maxValuesPerFacet": 2,
       "sortFacetValuesBy": {
         "*": "count"
       }
    }'
  2. Update update_faceting_settings_1 https://github.com/meilisearch/documentation/pull/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 https://github.com/meilisearch/documentation/pull/2496~

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

~9. Add new code sample update_experimental_features_1 https://github.com/meilisearch/documentation/pull/2496~

    -X PATCH 'http://localhost:7700/experimental-features/' \
    -H 'Content-Type: application/json'  \
    --data-binary '{
      "scoreDetails": true
    }'
maryamsulemani97 commented 12 months ago

@brunoocasali

Can you please transfer these to the integrations guide repo?

Thanks!

brunoocasali commented 11 months ago

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

brunoocasali commented 11 months ago

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