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

Deleting documents by query on Search Index fails with 500 #927

Open
adilansari opened this issue Mar 10, 2023 · 3 comments
Open

Deleting documents by query on Search Index fails with 500 #927

adilansari opened this issue Mar 10, 2023 · 3 comments
Labels
bug Something isn't working good first issue Good for newcomers Search small

Comments

@adilansari
Copy link
Contributor

Server returns 500: Internal Server Error when attempting to delete indexed documents by query.

https://github.com/tigrisdata/tigris-api/blob/main/server/v1/search.proto#L416-L425

  rpc DeleteByQuery(DeleteByQueryRequest) returns (DeleteByQueryResponse){
    option (google.api.http) = {
      delete : "/v1/projects/{project}/search/indexes/{index}/documents/deleteByQuery"
      body : "*"
    };
    option(openapi.v3.operation) = {
      summary: "Delete documents by query"
      tags: "Search"
    };
  }

Deletion by id works as expected.

@adilansari adilansari added bug Something isn't working good first issue Good for newcomers small Search labels Mar 10, 2023
@ovaistariq
Copy link
Collaborator

@himank fyi

@himank
Copy link
Collaborator

himank commented Mar 12, 2023

Probably filters are not parsed properly.

@himank
Copy link
Collaborator

himank commented Mar 12, 2023

@adilansari can you also add an example? Would be good to debug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers Search small
Projects
None yet
Development

No branches or pull requests

3 participants