Just design the APIs similarly to the DeleteByQuery APIs (HSEARCH-3304). We need APIs at the POJO level in particular.
Here are the index-scoped operations I have in mind:
* purge works * flush works * optimize works (unless we removed support for those) They are currently implemented in {{PojoMappingWorkExecutorImpl}} and {{org.hibernate.search.engine.backend.index.spi.IndexWorkExecutor}} implementations. Maybe these classes won't make sense anymore after we implement this ticket; we should check. |
|