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

Incorrect code sample for federated multi-search #2961

Closed
CaroFG opened this issue Aug 28, 2024 · 0 comments · Fixed by #2962
Closed

Incorrect code sample for federated multi-search #2961

CaroFG opened this issue Aug 28, 2024 · 0 comments · Fixed by #2962

Comments

@CaroFG
Copy link
Contributor

CaroFG commented Aug 28, 2024

limit, offset, hitsPerPage and page are not compatible with federated searches; However the federated multi-search code samples use limit search parameter:

curl \
  -X POST 'http://localhost:7700/multi-search' \
  -H 'Content-Type: application/json' \
  --data-binary '{
    "federation": {},
    "queries": [
      {
        "indexUid": "movies",
        "q": "batman",
        "limit": 5
      },
      {
        "indexUid": "comics",
        "q": "batman",
        "limit": 5
      }
    ]
  }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant