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]]; "}]}}
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]]; "}]}}
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 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]]; "}]}}
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.