# Percolator not working with exact match

**URL:** https://discuss.elastic.co/t/percolator-not-working-with-exact-match/32434
**Category:** Elasticsearch
**Created:** [October 17, 2015, 2:12pm UTC](https://discuss.elastic.co/t/percolator-not-working-with-exact-match/32434 "2015-10-17T14:12:03Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![2trc](https://avatars.discourse-cdn.com/v4/letter/2/919ad9/32.png) [@2trc](https://discuss.elastic.co/u/2trc)
#### Post date: [October 17, 2015, 2:12pm UTC](https://discuss.elastic.co/t/percolator-not-working-with-exact-match/32434/1 "2015-10-17T14:12:03Z")

</div>

Hi guys,

I was reading about the percolator feature on [https://www.elastic.co/guide/en/elasticsearch/reference/current/search-percolate.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-percolate.html) and I couldn't get exact matches (queries with quotes) to work.

The document {"message" : "A new bonsai tree in the office"} returns the queries "bonsai tree" and ""bonsai in the office"" as well.

See detail on gist: [https://gist.github.com/2trc/4c15213c64bd42af5aa3](https://gist.github.com/2trc/4c15213c64bd42af5aa3)

---

<div class="post-metadata">

### Author: ![cbuescher](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cbuescher/32/60402_2.png) [@cbuescher](https://discuss.elastic.co/u/cbuescher)
#### Post date: [October 17, 2015, 8:36pm UTC](https://discuss.elastic.co/t/percolator-not-working-with-exact-match/32434/2 "2015-10-17T20:36:02Z")

</div>

Did you try [Phrase Matching](https://www.elastic.co/guide/en/elasticsearch/guide/current/phrase-matching.html)? I believe that one should work the way you expected the query with quotes to work.

---

<div class="post-metadata">

### Author: ![2trc](https://avatars.discourse-cdn.com/v4/letter/2/919ad9/32.png) [@2trc](https://discuss.elastic.co/u/2trc)
#### Post date: [October 19, 2015, 7:07am UTC](https://discuss.elastic.co/t/percolator-not-working-with-exact-match/32434/3 "2015-10-19T07:07:05Z")

</div>

"Phrase query" does work and I'm going to use that instead, thanks!

Should the quote issue be considered a bug?

---

<div class="post-metadata">

### Author: ![cbuescher](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cbuescher/32/60402_2.png) [@cbuescher](https://discuss.elastic.co/u/cbuescher)
#### Post date: [October 19, 2015, 8:41am UTC](https://discuss.elastic.co/t/percolator-not-working-with-exact-match/32434/4 "2015-10-19T08:41:44Z")

</div>

I don't think it's a bug, quotes in match queries are analyzed like any other query string and the standard analyzer just discards them as punctuation. The expectation that this would work like a phrase match was the problem I think.

---

<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 5, 2017, 11:44pm UTC](https://discuss.elastic.co/t/percolator-not-working-with-exact-match/32434/5 "2017-07-05T23:44:07Z")

</div>


