0
from属性とsize属性を使用してページング結果を表示します。集約ページングでは、Elasticsearchで 'from'と 'size'を使用します。
ただし、集計の 'from'属性はサポートされていません。
他のアプローチはできますか?
クエリ構文:
"タイプ": "search_parse_exception"
"理由":「[DEDUP]でVALUE_NUMBERのための未知のキー:[
{
"size": 0,
"query": {
"bool": {
"must": [{
"match_phrase": {
"name": "John"
}
}]
}
},
"aggs":{
"dedup" : {
"terms":{
"field": "job",
"from": 2, <<-- Is it possible??
"size": 1
},
"aggs":{
"dedup_docs":{
"top_hits":{
"size":1
}
}
}
}
}
}
これはエラーメッセージです[from]]。
この回答は役立ちます:http://stackoverflow.com/questions/35945769/elastic-search-aggregation-pagination-issue – Val
[From/Sizeでelasticsearch集計結果を制御する方法]の可能な複製(https: //stackoverflow.com/questions/43038131/how-to-control-the-elasticsearch-aggregation-results-with-from-size) –