Can I use my existing Lucene MultiTermQuery/FilteredTermsEnum in Elasticsearch?

I have custom IP Address and Port range classes that I use in my current java application - which uses Lucene directly. Is there a straightforward way to use these in Elasticsearch? Or a better way?
They extend MultiTermQuery and FilteredTermsEnum in
package and so are available to be used in Lucene's calls.
I believe I'd need to have them load with the Elasticsearch Lucene Instance(s) and then be defined in a custom type that I could map to in elastic.
Thank you.