# Percolate - limit filtered percolating queries to the best matches

**URL:** <https://discuss.elastic.co/t/percolate-limit-filtered-percolating-queries-to-the-best-matches/22228>\
**Category:** Elasticsearch\
**Created:** [February 18, 2015, 9:11am UTC](https://discuss.elastic.co/t/percolate-limit-filtered-percolating-queries-to-the-best-matches/22228 "2015-02-18T09:11:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arnaud\_LARROQUE](https://avatars.discourse-cdn.com/v4/letter/a/edb3f5/32.png) [@Arnaud\_LARROQUE](https://discuss.elastic.co/u/Arnaud_LARROQUE)\
**Post date:** [February 18, 2015, 9:11am UTC](https://discuss.elastic.co/t/percolate-limit-filtered-percolating-queries-to-the-best-matches/22228/1 "2015-02-18T09:11:43Z")

</div>

Hi,

Let's say I have this kind of percolate query :

GET my-index/my-type/\_percolate  
{  
"doc": {  
...  
},  
"query": {  
"match": {  
...  
}  
},  
"track\_scores": true,  
"sort": "\_score"  
}

I have a query option which limit the number of queries to percolate my doc  
against.  
In fact I'm only interested in the best result (\_score) of the matching  
percolate queries.  
Is there anyway to limit the number of the filtered percolate queries to  
the best match ?

Thanks in advance for your help

Regards,

Arnaud

--  
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/54fe3ae9-be45-4afd-a98a-80657aa17dd0%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/54fe3ae9-be45-4afd-a98a-80657aa17dd0%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, 12:31am UTC](https://discuss.elastic.co/t/percolate-limit-filtered-percolating-queries-to-the-best-matches/22228/2 "2017-07-06T00:31:59Z")

</div>

Closed on July 6, 2017, 12:31am UTC


