tigris icon indicating copy to clipboard operation
tigris copied to clipboard

Deleting documents by query on Search Index fails with 500

Open adilansari opened this issue 1 year ago • 3 comments

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 avatar Mar 10 '23 17:03 adilansari

@himank fyi

ovaistariq avatar Mar 12 '23 04:03 ovaistariq

Probably filters are not parsed properly.

himank avatar Mar 12 '23 07:03 himank

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

himank avatar Mar 12 '23 07:03 himank