# 'reverese' match query

**URL:** <https://discuss.elastic.co/t/reverese-match-query/17138>\
**Category:** Elasticsearch\
**Created:** [April 22, 2014, 9:41pm UTC](https://discuss.elastic.co/t/reverese-match-query/17138 "2014-04-22T21:41:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karol\_Gwaj](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/karol_gwaj/32/1324_2.png) [@Karol\_Gwaj](https://discuss.elastic.co/u/Karol_Gwaj)\
**Post date:** [April 22, 2014, 9:41pm UTC](https://discuss.elastic.co/t/reverese-match-query/17138/1 "2014-04-22T21:41:00Z")

</div>

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](mailto: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](https://groups.google.com/d/msgid/elasticsearch/063ee82f-c09b-4d68-a5b6-0a486e3500e4%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 1:34am UTC](https://discuss.elastic.co/t/reverese-match-query/17138/2 "2017-07-06T01:34:12Z")

</div>


