From 8bc0240a073e95a6686dc3d74957b224362f7c6a Mon Sep 17 00:00:00 2001 From: Yuku Takahashi Date: Fri, 16 Feb 2024 17:04:19 +0900 Subject: [PATCH] Add DeleteDocumentsByFilter to IndexInterface --- index.go | 1 + 1 file changed, 1 insertion(+) diff --git a/index.go b/index.go index 0f0945f9..58236392 100644 --- a/index.go +++ b/index.go @@ -42,6 +42,7 @@ type IndexInterface interface { GetDocuments(param *DocumentsQuery, resp *DocumentsResult) error DeleteDocument(uid string) (resp *TaskInfo, err error) DeleteDocuments(uid []string) (resp *TaskInfo, err error) + DeleteDocumentsByFilter(filter interface{}) (resp *TaskInfo, err error) DeleteAllDocuments() (resp *TaskInfo, err error) Search(query string, request *SearchRequest) (*SearchResponse, error) SearchRaw(query string, request *SearchRequest) (*json.RawMessage, error)