The best way to export specific data to lucene file like snapshot file

I want to export some data according to specific condititons. But the rest api has a bad performance. In order to export the file as soon as possible, I can use snapshot. But snapshot can only be exported incrementally, which does not meet my requirements. Any other way ?

I don't believe so.

Why is the REST API bad?

Compared with snapshot, the throughput of rest api is too small.