cakephp / elastic-search

Elastic search datasource for CakePHP
Other
88 stars 53 forks source link

[Question] deleteAll #138

Closed allana-cloud closed 4 years ago

allana-cloud commented 7 years ago

Hi guys, how can i truncate all documents from type? deleteAll() is requiring me for a condition, I wanted the condition be like match_all: {}

Thanks

markstory commented 7 years ago

You should be able to pass an AbstractFilter instance as the conditions for deleteAll() allowing you to create a match_all query. I don't have an example handy, but from a quick read of the code it should work.

allana-cloud commented 7 years ago

Thanks markstory for your reply! example code would be pretty much handy :)

github-actions[bot] commented 4 years ago

This issue is stale because it has been open for 120 days with no activity. Remove the stale label or comment or this will be closed in 15 days