# Percolator does not support min\_score?

**URL:** https://discuss.elastic.co/t/percolator-does-not-support-min-score/17899
**Category:** Elasticsearch
**Created:** [June 4, 2014, 3:20am UTC](https://discuss.elastic.co/t/percolator-does-not-support-min-score/17899 "2014-06-04T03:20:54Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Miyuki\_Endo](https://avatars.discourse-cdn.com/v4/letter/m/b38774/32.png) [@Miyuki\_Endo](https://discuss.elastic.co/u/Miyuki_Endo)
#### Post date: [June 4, 2014, 3:20am UTC](https://discuss.elastic.co/t/percolator-does-not-support-min-score/17899/1 "2014-06-04T03:20:54Z")

</div>

Hi! I'm running the following percolator to test out one of the use cases:

Elasticsearch version 1.1.1

---PUT Percolator  
curl -XPUT 'localhost:9200/shop/.percolator/p-1' -d @percolator1.json

---percolator1.json  
{  
"min\_score":0.8,  
"query":{  
"filtered":{  
"query":{  
"match":{  
"casts":"Johnny Anne"  
}  
},  
"filter":{  
"range":{  
"year":{  
"gte":2005  
}  
}  
}  
}  
}  
}

---PUT Document  
curl -XPUT 'localhost:9200/shop/dvd/0' -d '{  
"title":"Alice in Wonderland",  
"year":2010,  
"director":"Tim Burton",  
"writer":["Linda Woolverton","Lewis Carroll"],  
"casts":["Johnny Depp","Mia Wasikowska","Anne Hathaway"],  
"time":109,  
"available":true,  
"tags":["Family","Fantasy","Adventure"]  
}'

---Get Document (standard query : same ".percolator/p-1")  
curl -XGET 'localhost:9200/shop\_ja/dvd/\_search?pretty' -d '  
{  
"min\_score":0.8,  
"query":{  
"filtered":{  
"query":{  
"match":{  
"casts":"Johnny Anne"  
}  
},  
"filter":{  
"range":{  
"year":{  
"gte":2005  
}  
}  
}  
}  
}  
}'  
=\> No hit

- When "min\_score" is 0.7, it hits as expected.

--- Get \_percolate  
curl -XGET 'localhost:9200/shop\_ja/dvd/0/\_percolate'  
=\> ..."total":1,"matches":[{"\_index":"shop","\_id":"p-1"}]

It seems that there is no effect of min\_score.  
percolator does not support min\_score?

--  
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/2325e125-77b5-43b4-bfc8-ec2ca71704cd%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/2325e125-77b5-43b4-bfc8-ec2ca71704cd%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![johtani](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/johtani/32/44956_2.png) [@johtani](https://discuss.elastic.co/u/johtani)
#### Post date: [June 4, 2014, 5:56am UTC](https://discuss.elastic.co/t/percolator-does-not-support-min-score/17899/2 "2014-06-04T05:56:06Z")

</div>

Hi,

I’m not sure how to implement the percolator,  
but I think that min\_score does not work properly.  
Because the percolator is processing one document at a time,  
it is different from the usual score.

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

Why do you want to use the min\_score?

* * *

Jun Ohtani  
[johtani@gmail.com](mailto:johtani@gmail.com)  
twitter : [http://twitter.com/johtani](http://twitter.com/johtani)

2014/06/04 12:20、Miyuki Endo [miyuki@knowledge-works.co.jp](mailto:miyuki@knowledge-works.co.jp) のメール：

> Hi! I'm running the following percolator to test out one of the use cases:
> 
> Elasticsearch version 1.1.1
> 
> ---PUT Percolator  
> curl -XPUT 'localhost:9200/shop/.percolator/p-1' -d @percolator1.json
> 
> ---percolator1.json  
> {  
> "min\_score":0.8,  
> "query":{  
> "filtered":{  
> "query":{  
> "match":{  
> "casts":"Johnny Anne"  
> }  
> },  
> "filter":{  
> "range":{  
> "year":{  
> "gte":2005  
> }  
> }  
> }  
> }  
> }  
> }
> 
> ---PUT Document  
> curl -XPUT 'localhost:9200/shop/dvd/0' -d '{  
> "title":"Alice in Wonderland",  
> "year":2010,  
> "director":"Tim Burton",  
> "writer":["Linda Woolverton","Lewis Carroll"],  
> "casts":["Johnny Depp","Mia Wasikowska","Anne Hathaway"],  
> "time":109,  
> "available":true,  
> "tags":["Family","Fantasy","Adventure"]  
> }'
> 
> ---Get Document (standard query : same ".percolator/p-1")  
> curl -XGET 'localhost:9200/shop\_ja/dvd/\_search?pretty' -d '  
> {  
> "min\_score":0.8,  
> "query":{  
> "filtered":{  
> "query":{  
> "match":{  
> "casts":"Johnny Anne"  
> }  
> },  
> "filter":{  
> "range":{  
> "year":{  
> "gte":2005  
> }  
> }  
> }  
> }  
> }  
> }'  
> =\> No hit
> 
> - When "min\_score" is 0.7, it hits as expected.
> 
> --- Get \_percolate  
> curl -XGET 'localhost:9200/shop\_ja/dvd/0/\_percolate'  
> =\> ..."total":1,"matches":[{"\_index":"shop","\_id":"p-1"}]
> 
> It seems that there is no effect of min\_score.  
> percolator does not support min\_score?
> 
> --  
> 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/2325e125-77b5-43b4-bfc8-ec2ca71704cd%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/2325e125-77b5-43b4-bfc8-ec2ca71704cd%40googlegroups.com).  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![Miyuki\_Endo](https://avatars.discourse-cdn.com/v4/letter/m/b38774/32.png) [@Miyuki\_Endo](https://discuss.elastic.co/u/Miyuki_Endo)
#### Post date: [June 5, 2014, 1:47am UTC](https://discuss.elastic.co/t/percolator-does-not-support-min-score/17899/3 "2014-06-05T01:47:14Z")

</div>

Hi,

I thought that restriction of a percolator query type are only has\_child,  
top\_child, has\_parent, nested.

I would like to notice that document if the score exceeds the specified,  
using percolator.  
However, I understand that min\_score does not work.  
Thank you very much.

2014年6月4日水曜日 14時56分29秒 UTC+9 Jun Ohtani:

> Hi,
> 
> I’m not sure how to implement the percolator,  
> but I think that min\_score does not work properly.  
> Because the percolator is processing one document at a time,  
> it is different from the usual score.
> 
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-percolate.html#_important_notes)
> 
> Why do you want to use the min\_score?
> 
> * * *
> 
> Jun Ohtani  
> [joh...@gmail.com](mailto:joh...@gmail.com) \<javascript:\>  
> twitter : [http://twitter.com/johtani](http://twitter.com/johtani)

--  
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/272bfed2-03d1-4638-a830-80ee7e15ea22%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/272bfed2-03d1-4638-a830-80ee7e15ea22%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:24am UTC](https://discuss.elastic.co/t/percolator-does-not-support-min-score/17899/4 "2017-07-06T01:24:36Z")

</div>


