meilisearch / integration-guides

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

v1.1 code sample changes #254

Closed maryamsulemani97 closed 1 year ago

maryamsulemani97 commented 1 year ago

To be transferred to the integration guide repo on 2023-03-28

  1. Rename faceted_search_update_settings_1 to filtering_update_settings_1 meilisearch/documentation#2208

  2. Add multi_search_1 meilisearch/documentation#2208

    • Use the multi-search route to search for:
      "queries": [
      {
        "indexUid": "movies",
        "q": "pooh",
        "limit": 5
      },
      {
        "indexUid": "movies",
        "q": "nemo",
        "limit": 5
      },
      {
        "indexUid": "movie_ratings",
        "q": "us"
      }
      ]
      }'
  3. Add faceted_search_update_settings_1 meilisearch/documentation#2208

    • Add "genres", "rating", "language" as filterable attributes to the books index
  4. Add faceted_search_1 meilisearch/documentation#2208

    • Search books index:
      {
      "q": "classic",
      "facets": [
      "genres", "rating", "language"
      ]
      }'
  5. Add search_parameter_guide_facet_stats_1 meilisearch/documentation#2208

    • search movie_ratings index:
      '{
      "q": "Batman",
      "facets": ["genres", "rating"]
      }'
  6. Add faceted_search_2 meilisearch/documentation#2208

    • Use the following query with the /multi-search route:
      {
      "queries": [
      {
        "indexUid": "books",
        "facets": ["language", "genres", "author", "format"],
        "filter": [["language = English", "language = French"], ["genres = Fiction"]]
      },
      {
        "indexUid": "books",
        "facets": ["language"],
        "filter": [["genres = Fiction"]]
      },
      {
        "indexUid": "books",
        "facets": ["genres"],
        "filter": [["language = English", "language = French"]]
      }
      ]
      }'
  7. Addgeosearch_guide_filter_usage_3 meilisearch/documentation#2216

    curl \
    -X POST 'http://localhost:7700/indexes/restaurants/search' \
    -H 'Content-type:application/json' \
    --data-binary '{ "filter": "_geoBoundingBox([45.494181, 9.179175], [45.449484, 9.214024])" }'
maryamsulemani97 commented 1 year ago

@bidoubiwa This issue contains the issues for v1.1. Can you please move it to the integration-guides repo?

maryamsulemani97 commented 1 year ago

@bidoubiwa I updated faceted_search_2 (no. 8 on the list) to use the string syntax instead of array

bidoubiwa commented 1 year ago

Hey @maryamsulemani97, could you suggest that change in the next batch of code-samples? We are in the rush of the pre-release and with Bruno being on holiday, we have unfortunately no time to change this 😕

brunoocasali commented 1 year ago

Since tiers #1 and #2 were done, I'm closing this, thanks a lot @bidoubiwa for taking care of everything in the absence of me and @alallema :)