# In the Java API of ES, is there a way to find which of the search terms did not match in the mappings of a percolator?

**URL:** <https://discuss.elastic.co/t/in-the-java-api-of-es-is-there-a-way-to-find-which-of-the-search-terms-did-not-match-in-the-mappings-of-a-percolator/18523>\
**Category:** Elasticsearch\
**Created:** [July 8, 2014, 8:45am UTC](https://discuss.elastic.co/t/in-the-java-api-of-es-is-there-a-way-to-find-which-of-the-search-terms-did-not-match-in-the-mappings-of-a-percolator/18523 "2014-07-08T08:45:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mchekol\_Liganz](https://avatars.discourse-cdn.com/v4/letter/m/85e7bf/32.png) [@Mchekol\_Liganz](https://discuss.elastic.co/u/Mchekol_Liganz)\
**Post date:** [July 8, 2014, 8:45am UTC](https://discuss.elastic.co/t/in-the-java-api-of-es-is-there-a-way-to-find-which-of-the-search-terms-did-not-match-in-the-mappings-of-a-percolator/18523/1 "2014-07-08T08:45:57Z")

</div>

I am a newbie in ES. I have a small problem when fetching percolators that match a search request.  
In the Java API of ES, is there a way to find which of the search terms did not match in the mappings of a percolator?  
For instance, assume that I have a percolator P1 with a mapping "sport":"football" and a search string S = "football in Manchester". Now,  
if I retrieve all the percolators that match S, then I will get P1 obviously because of the term "football". I am interested in collecting all those  
unmatched terms, in this case, "in Manchester". Is there a way to do this in the Java API of ES?

Thanks

---

<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:17am UTC](https://discuss.elastic.co/t/in-the-java-api-of-es-is-there-a-way-to-find-which-of-the-search-terms-did-not-match-in-the-mappings-of-a-percolator/18523/2 "2017-07-06T01:17:23Z")

</div>

Closed on July 6, 2017, 1:17am UTC


