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.1 code sample changes #254

Closed
maryamsulemani97 opened this issue Mar 8, 2023 · 4 comments
Closed

v1.1 code sample changes #254

maryamsulemani97 opened this issue Mar 8, 2023 · 4 comments

Comments

@maryamsulemani97
Copy link

maryamsulemani97 commented Mar 8, 2023

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

  1. Rename faceted_search_update_settings_1 to filtering_update_settings_1 v1.1: Multi-index search documentation#2208
  2. Add multi_search_1 v1.1: Multi-index search 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"
        }
      ]
    }'
  1. Add faceted_search_update_settings_1 v1.1: Multi-index search documentation#2208
  • Add "genres", "rating", "language" as filterable attributes to the books index
  1. Add faceted_search_1 v1.1: Multi-index search documentation#2208
  • Search books index:
{
    "q": "classic",
      "facets": [
      "genres", "rating", "language"
    ]
  }'
  1. Add search_parameter_guide_facet_stats_1 v1.1: Multi-index search documentation#2208
  • search movie_ratings index:
'{
      "q": "Batman",
      "facets": ["genres", "rating"]
    }'
  1. Add faceted_search_2 v1.1: Multi-index search 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"]]
       }
     ]
   }'
  1. Addgeosearch_guide_filter_usage_3 v1.1: Add new filter rule _geoBoundingBox 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
Copy link
Author

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

@bidoubiwa bidoubiwa transferred this issue from meilisearch/documentation Mar 28, 2023
bors bot added a commit to meilisearch/meilisearch-python that referenced this issue Mar 29, 2023
723: Update code-samples for Meilisearch v1.1.0 r=alallema a=meili-bot

_This PR is auto-generated._

Update the code-samples.meilisearch.yml according to the [integration-guides issue](meilisearch/integration-guides#254) for more information and the complete description about what should be done here check that issue.


Co-authored-by: meili-bot <[email protected]>
Co-authored-by: Amélie <[email protected]>
Co-authored-by: alallema <[email protected]>
@maryamsulemani97
Copy link
Author

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

@bidoubiwa
Copy link
Contributor

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 😕

bors bot added a commit to meilisearch/meilisearch-rust that referenced this issue Apr 2, 2023
453: Update code-samples for Meilisearch v1.1.0 r=bidoubiwa a=meili-bot

_This PR is auto-generated._

Update the code-samples.meilisearch.yml according to the [integration-guides issue](meilisearch/integration-guides#254) for more information and the complete description about what should be done here check that issue.


Co-authored-by: meili-bot <[email protected]>
meili-bors bot added a commit to meilisearch/meilisearch-js that referenced this issue Apr 2, 2023
1471: Update code-samples for Meilisearch v1.1.0 r=bidoubiwa a=meili-bot

_This PR is auto-generated._

Update the code-samples.meilisearch.yml according to the [integration-guides issue](meilisearch/integration-guides#254) for more information and the complete description about what should be done here check that issue.


Co-authored-by: meili-bot <[email protected]>
bors bot added a commit to meilisearch/meilisearch-php that referenced this issue Apr 2, 2023
484: Update code-samples for Meilisearch v1.1.0 r=bidoubiwa a=meili-bot

_This PR is auto-generated._

Update the code-samples.meilisearch.yml according to the [integration-guides issue](meilisearch/integration-guides#254) for more information and the complete description about what should be done here check that issue.


Co-authored-by: meili-bot <[email protected]>
Co-authored-by: cvermand <[email protected]>
meili-bors bot added a commit to meilisearch/meilisearch-ruby that referenced this issue Apr 2, 2023
428: Update code-samples for Meilisearch v1.1.0 r=bidoubiwa a=meili-bot

_This PR is auto-generated._

Update the code-samples.meilisearch.yml according to the [integration-guides issue](meilisearch/integration-guides#254) for more information and the complete description about what should be done here check that issue.


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

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 :)

meili-bors bot added a commit to meilisearch/meilisearch-dart that referenced this issue May 2, 2023
277: Update code-samples for Meilisearch v1.1.0 r=brunoocasali a=meili-bot

_This PR is auto-generated._

Update the code-samples.meilisearch.yml according to the [integration-guides issue](meilisearch/integration-guides#254) for more information and the complete description about what should be done here check that issue.


Co-authored-by: meili-bot <[email protected]>
Co-authored-by: Bruno Casali <[email protected]>
meili-bors bot added a commit to meilisearch/meilisearch-swift that referenced this issue Jun 14, 2023
376: Update code-samples for Meilisearch v1.1.0 r=brunoocasali a=meili-bot

_This PR is auto-generated._

Update the code-samples.meilisearch.yml according to the [integration-guides issue](meilisearch/integration-guides#254) for more information and the complete description about what should be done here check that issue.


Co-authored-by: meili-bot <[email protected]>
Co-authored-by: Bruno Casali <[email protected]>
meili-bors bot added a commit to meilisearch/meilisearch-dotnet that referenced this issue Jul 3, 2023
407: Update code-samples for Meilisearch v1.1.0 r=alallema a=meili-bot

⚠️ Should not be merged until the multi-search method is added.

_This PR is auto-generated._

Update the code-samples.meilisearch.yml according to the [integration-guides issue](meilisearch/integration-guides#254) for more information and the complete description about what should be done here check that issue.


Co-authored-by: meili-bot <[email protected]>
Co-authored-by: Amélie <[email protected]>
Co-authored-by: Ahmed Fwela <[email protected]>
Co-authored-by: meili-bors[bot] <89034592+meili-bors[bot]@users.noreply.github.com>
Co-authored-by: alallema <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants