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.9] Get similar documents #988

Open
4 tasks
curquiza opened this issue Jul 1, 2024 · 2 comments
Open
4 tasks

[v1.9] Get similar documents #988

curquiza opened this issue Jul 1, 2024 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@curquiza
Copy link
Member

curquiza commented Jul 1, 2024

Following this central issue

This is related to a newly introduced feature in Meilisearch v1.9.0: get similar documents.

Refer to docs for more information.

  • Add a new method named searchSimilarDocuments() (adapt the case to the language) having 1 parameter. This parameter is an object corresponding to the body you should pass to the POST /similar route. Do not manage error, Meilisearch will handle them if a field is missing in the body.
    Do NOT implement the route for GET /indexes/{index_uid}/similar, we will add it in a second iteration if requested.
  • Add tests. Here is the basic test to do to check everything is fine
  • Update the .code-samples.meilisearch.yaml
@curquiza curquiza added enhancement New feature or request good first issue Good for newcomers labels Jul 1, 2024
@MuddyHope
Copy link
Contributor

I would like to work on this. But the only thing I had was, when calling the api from my local.
{method=POST host="localhost:7700" route=/indexes/movies/similar query_parameters= user_agent=curl/8.1.1 status_code=400 error=Using the similar API requires enabling the vector store experimental feature. See https://github.com/meilisearch/product/discussions/677}py

Is this available with 1.10?

@sanders41
Copy link
Collaborator

It is available in 1.9, but you need to enable vector search. In the tests this fixture enables it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants