2
カスタム_id
フィールドはlong
の値を使用します。私はmax_id値を取得したいと思います。elasticsearchで最大の_id値を取得するにはどうすればよいですか?
{
"stored_fields": [
"_id"
],
"query": {
"match_all": {}
},
"sort": {
"_id": "desc"
},
"size": 1
}
しかし、私はそう
"reason": {
"type": "illegal_argument_exception",
"reason": "Fielddata access on the _uid field is disallowed"
}
AS-バックES 5.1からのエラーを取得し、どのように私は
_id
の最大値を得ることについて行かない - 私が作っています検索があります。私は実際には最大値を得るために文書の中に
_id
のコピーを格納したくはありません。