Hello, recently I was asked whether it was possible to compare two string with Elasticsearch, without actually indexing any documents. For example, say I have two strings: "the brown fox" and "the brown fox here". Would it be possible to compare these two strings, without indexing at least one of them? In this example, say the second string was in a 'text' field for a document in an index. I could then use a match_phrase on the first term -for the text field - and it would pick up the document in the index that has the second term. Is there anyway to compare these two strings using Elasticsearch without having at least one of the strings in an index?
I personally don't think it's possible. But I would like a second opinion to know for sure! Thank you.