-
Notifications
You must be signed in to change notification settings - Fork 97
Closed
Description
The code sample that describes the use of the delete_documents method (meilisearch/index.py):
...
@version_error_hint_message
def delete_documents(
self,
ids: Optional[List[Union[str, int]]] = None,
*,
filter: Optional[ # pylint: disable=redefined-builtin
Union[str, List[Union[str, List[str]]]]
] = None,
) -> TaskInfo:
...'contains an error' in the delete_documents method call.
The code should use the filter argument directly as shown below:
client.index('movies').delete_documents(filter='genres=action OR genres=adventure')instead of a dictionary:
client.index('movies').delete_documents({filter='genres=action OR genres=adventure'})Expected Behavior:
The code sample should delete documents from the 'movies' index based on the provided filter.
Actual Behavior:
The code sample contains syntax errors and does not work.
Metadata
Metadata
Assignees
Labels
No labels