Translate query from Sphinx to Elasticsearch

I work with a monitoring system and have a lot of queries on Sphinx.

I need to translate Sphinx queries into elasticsearch, because we will upgrade our db on elasticsearch.

For example i have query on sphinx: (Donald NEAR/3 Trump +Ukraine)| ((John NEAR/2 Biden) NEAR/5 Burisma)

Does anyone know how to parse the sphinx query and translate it to elasticsearch?

Hello, Alexander.

NEAR/num is a slop in a phase https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-match-query-phrase.html
Usually clauses are combined with "bool". Low level positional queries are spans and intervals.

Can you give me some examples, for those queries?