Is there a way to convert an Elasticsearch query to its Lucene equivalent?

I have an existing parser that will properly parse a Lucene query into the data objects I need. I would like to reuse this code if possible as opposed to writing a new parser.

Is there a way to take an existing Elasticsearch JSON query and get back the equivalent Lucene query? I know this seems backwards but as I said, it would allow me to reuse existing code.

I am using ES 2.3.3 and the ES Java Api and Jest API.

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.