# Percolator with two fields

**URL:** <https://discuss.elastic.co/t/percolator-with-two-fields/63832>\
**Category:** Elasticsearch\
**Created:** [October 25, 2016, 6:51am UTC](https://discuss.elastic.co/t/percolator-with-two-fields/63832 "2016-10-25T06:51:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![siddharth\_gupta](https://avatars.discourse-cdn.com/v4/letter/s/dec6dc/32.png) [@siddharth\_gupta](https://discuss.elastic.co/u/siddharth_gupta)\
**Post date:** [October 25, 2016, 6:51am UTC](https://discuss.elastic.co/t/percolator-with-two-fields/63832/1 "2016-10-25T06:51:28Z")

</div>

I have a percolator made up of two fields.

!. String field  
2. Long field

When i send a percolator request I get all the strings related to the text that I provide as input.  
Is'nt there any way so that I can get the long field too related to the particular string ?

Please Let me know if someone can help.

Thanks  
Siddharth!

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [October 26, 2016, 10:09am UTC](https://discuss.elastic.co/t/percolator-with-two-fields/63832/2 "2016-10-26T10:09:04Z")

</div>

You want to compare a long to a string?

---

<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, 10:09pm UTC](https://discuss.elastic.co/t/percolator-with-two-fields/63832/3 "2017-07-05T22:09:34Z")

</div>

Closed on July 5, 2017, 10:09pm UTC


