Skip to content

Commit

Permalink
Merge #511
Browse files Browse the repository at this point in the history
511: Enable to use `DeleteDocumentsByFilter` through `IndexInterface` r=curquiza a=yuku

# Pull Request

## Related issue
*None*

## What does this PR do?
Add `DeleteDocumentsByFilter` method to `IndexInterface` to be able to use the method through the interface.

https://github.com/meilisearch/meilisearch-go/blob/3310833cd68e1fd42c9f63e9028edf41410e5b5c/index_documents.go#L535

Without this change, the following document doesn't work as expected.

<img width="1005" alt="image" src="https://github.com/meilisearch/meilisearch-go/assets/96157/605981da-ca73-4b17-a4b0-ac9f623f5206">

## PR checklist
Please check if your PR fulfills the following requirements:
- [x] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)?
- [x] Have you read the contributing guidelines?
- [x] Have you made sure that the title is accurate and descriptive of the changes?

Thank you so much for contributing to Meilisearch!


Co-authored-by: Yuku Takahashi <[email protected]>
  • Loading branch information
meili-bors[bot] and yuku authored Feb 19, 2024
2 parents 3310833 + 8bc0240 commit 32d04bf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 32d04bf

Please sign in to comment.