There's no such thing in DokuWiki. @turnermm's suggestion will do an exact phrase search which might be enough for what you're trying to achieve, but is no proximity search. I don't know if ElasticSearch supports that, if so the appropriate plugin might be of help.