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

Add experimental Network API #600

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

ellnix
Copy link
Collaborator

@ellnix ellnix commented Jan 24, 2025

Updated for the current state of the network API.

Fixes #609


Old description, not relevant anymore:


Initial implementation of sharding via /network/* endpoints and federated search, planned for 1.13.

See integration issue:
meilisearch/integration-guides#314

While this PR contains tests, they have not yet been run. None of the code has been run really, you can think of it more as pseudocode. It definitely has errors.

The purpose of starting the PR so early was to do some groundwork to support 1.13 on release day, in addition to starting some discussion about naming various endpoints and testing proxy search by running two Meilisearch instances.

  • Wait for MS 1.13 to be released
  • Add the correct code samples
  • Wait for Federated search added #567 to be merged
  • Fix broken code
  • Make the proxy tests run in CI

Currently, the API specification is not great, so it's possible I misunderstood it. The code samples are just guesses by me.

Please provide feedback on the comments (or any fishy code).

@ellnix ellnix force-pushed the proxy-search branch 2 times, most recently from f3be092 to e290cfb Compare April 1, 2025 20:27
@ellnix ellnix changed the title WIP 1.13: Support sharding Add experimental Network API Apr 1, 2025
@ellnix ellnix marked this pull request as ready for review April 1, 2025 20:28
Copy link

codecov bot commented Apr 1, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (3e145e0) to head (91794ec).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #600   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           10        11    +1     
  Lines          796       806   +10     
=========================================
+ Hits           796       806   +10     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ellnix ellnix requested a review from brunoocasali April 1, 2025 20:37
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 this pull request may close these issues.

[v1.13] Remote federated search requests (experimental)
1 participant