# Min\_score doesn't seem to be working with \_count api

**URL:** <https://discuss.elastic.co/t/min-score-doesnt-seem-to-be-working-with--count-api/20664>\
**Category:** Elasticsearch\
**Created:** [November 10, 2014, 3:54pm UTC](https://discuss.elastic.co/t/min-score-doesnt-seem-to-be-working-with--count-api/20664 "2014-11-10T15:54:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roly\_Vicaria](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/roly_vicaria/32/506_2.png) [@Roly\_Vicaria](https://discuss.elastic.co/u/Roly_Vicaria)\
**Post date:** [November 10, 2014, 3:54pm UTC](https://discuss.elastic.co/t/min-score-doesnt-seem-to-be-working-with--count-api/20664/1 "2014-11-10T15:54:33Z")

</div>

Hello,

I'm trying to pass a min\_score parameter using the \_count api, but it  
doesn't seem to work. When I add it via query string, it just gets ignored  
and returns the full count. When I add it to the query using "min\_score" :  
1, then I get the following exception response:

{"count":0,"\_shards":{"total":5,"successful":0,"failed":5,"failures":[{"index":"recruitment","shard":1,"reason":"BroadcastShardOperationFailedException[[recruitment][1]  
]; nested: QueryParsingException[[recruitment] request does not support  
[min\_score]];  
"},{"index":"recruitment","shard":0,"reason":"BroadcastShardOperationFailedException[[recruitment][0]  
]; nested: QueryParsingException[[recruitment] request does not support  
[min\_score]];  
"},{"index":"recruitment","shard":3,"reason":"BroadcastShardOperationFailedException[[recruitment][3]  
]; nested: QueryParsingException[[recruitment] request does not support  
[min\_score]];  
"},{"index":"recruitment","shard":2,"reason":"BroadcastShardOperationFailedException[[recruitment][2]  
]; nested: QueryParsingException[[recruitment] request does not support  
[min\_score]];  
"},{"index":"recruitment","shard":4,"reason":"BroadcastShardOperationFailedException[[recruitment][4]  
]; nested: QueryParsingException[[recruitment] request does not support  
[min\_score]]; "}]}}

Has anyone else run into this?

Thanks,  
Roly

--  
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/061adad5-3ba9-457f-9b59-dc822b5f123d%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/061adad5-3ba9-457f-9b59-dc822b5f123d%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Roly\_Vicaria](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/roly_vicaria/32/506_2.png) [@Roly\_Vicaria](https://discuss.elastic.co/u/Roly_Vicaria)\
**Post date:** [November 10, 2014, 3:55pm UTC](https://discuss.elastic.co/t/min-score-doesnt-seem-to-be-working-with--count-api/20664/2 "2014-11-10T15:55:06Z")

</div>

Also, I'm trying this on v1.3.2

On Monday, November 10, 2014 10:54:33 AM UTC-5, Roly Vicaria wrote:

> Hello,
> 
> I'm trying to pass a min\_score parameter using the \_count api, but it  
> doesn't seem to work. When I add it via query string, it just gets ignored  
> and returns the full count. When I add it to the query using "min\_score" :  
> 1, then I get the following exception response:
> 
> {"count":0,"\_shards":{"total":5,"successful":0,"failed":5,"failures":[{"index":"recruitment","shard":1,"reason":"BroadcastShardOperationFailedException[[recruitment][1]  
> ]; nested: QueryParsingException[[recruitment] request does not support  
> [min\_score]];  
> "},{"index":"recruitment","shard":0,"reason":"BroadcastShardOperationFailedException[[recruitment][0]  
> ]; nested: QueryParsingException[[recruitment] request does not support  
> [min\_score]];  
> "},{"index":"recruitment","shard":3,"reason":"BroadcastShardOperationFailedException[[recruitment][3]  
> ]; nested: QueryParsingException[[recruitment] request does not support  
> [min\_score]];  
> "},{"index":"recruitment","shard":2,"reason":"BroadcastShardOperationFailedException[[recruitment][2]  
> ]; nested: QueryParsingException[[recruitment] request does not support  
> [min\_score]];  
> "},{"index":"recruitment","shard":4,"reason":"BroadcastShardOperationFailedException[[recruitment][4]  
> ]; nested: QueryParsingException[[recruitment] request does not support  
> [min\_score]]; "}]}}
> 
> Has anyone else run into this?
> 
> Thanks,  
> Roly

--  
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/b8d2dbfe-6b07-404e-887a-11ef3b46426a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b8d2dbfe-6b07-404e-887a-11ef3b46426a%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [November 10, 2014, 4:39pm UTC](https://discuss.elastic.co/t/min-score-doesnt-seem-to-be-working-with--count-api/20664/3 "2014-11-10T16:39:19Z")

</div>

Just a guess, but I would assume that the count API does not score  
documents, which is why it is faster, leading to a setting such as  
min\_score to be obsolete.

--  
Ivan

On Mon, Nov 10, 2014 at 10:55 AM, Roly Vicaria [rolyv19@gmail.com](mailto:rolyv19@gmail.com) wrote:

> Also, I'm trying this on v1.3.2
> 
> On Monday, November 10, 2014 10:54:33 AM UTC-5, Roly Vicaria wrote:
> 
> > Hello,
> > 
> > I'm trying to pass a min\_score parameter using the \_count api, but it  
> > doesn't seem to work. When I add it via query string, it just gets ignored  
> > and returns the full count. When I add it to the query using "min\_score" :  
> > 1, then I get the following exception response:
> > 
> > {"count":0,"\_shards":{"total":5,"successful":0,"failed":5,"  
> > failures":[{"index":"recruitment","shard":1,"reason":"  
> > BroadcastShardOperationFailedException[[recruitment][1] ]; nested:  
> > QueryParsingException[[recruitment] request does not support  
> > [min\_score]]; "},{"index":"recruitment","shard":0,"reason":"  
> > BroadcastShardOperationFailedException[[recruitment][0] ]; nested:  
> > QueryParsingException[[recruitment] request does not support  
> > [min\_score]]; "},{"index":"recruitment","shard":3,"reason":"  
> > BroadcastShardOperationFailedException[[recruitment][3] ]; nested:  
> > QueryParsingException[[recruitment] request does not support  
> > [min\_score]]; "},{"index":"recruitment","shard":2,"reason":"  
> > BroadcastShardOperationFailedException[[recruitment][2] ]; nested:  
> > QueryParsingException[[recruitment] request does not support  
> > [min\_score]]; "},{"index":"recruitment","shard":4,"reason":"  
> > BroadcastShardOperationFailedException[[recruitment][4] ]; nested:  
> > QueryParsingException[[recruitment] request does not support  
> > [min\_score]]; "}]}}
> > 
> > Has anyone else run into this?
> > 
> > Thanks,  
> > Roly
> 
> --  
> 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/b8d2dbfe-6b07-404e-887a-11ef3b46426a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b8d2dbfe-6b07-404e-887a-11ef3b46426a%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/b8d2dbfe-6b07-404e-887a-11ef3b46426a%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/b8d2dbfe-6b07-404e-887a-11ef3b46426a%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/CALY%3DcQBd3TuBk0CwkBT%2Bq5KzSqEpHTJwe5GU1F8iaMGU5iFJLw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQBd3TuBk0CwkBT%2Bq5KzSqEpHTJwe5GU1F8iaMGU5iFJLw%40mail.gmail.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:51am UTC](https://discuss.elastic.co/t/min-score-doesnt-seem-to-be-working-with--count-api/20664/4 "2017-07-06T00:51:04Z")

</div>


