'reverese' match query


(Karol Gwaj) #1

is it possible with elasticsearch to do some kind of 'reverse' match query,
when field terms are matched against query terms?
(btw, i know about precolate API)

in my case i have query text (user input) containing address, for example:
"some, text,* dublin, ireland*, some more text"
and i want to match it against document with field: "dublin, ireland"

i would like to create query/filter that will require for all terms from
document field to be in query text (so the *and *operator will apply to
terms from the document)
is it possible somehow ?

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/063ee82f-c09b-4d68-a5b6-0a486e3500e4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(system) #2