特定の国のすべての都市を返したいクエリがあります。
100の制限を回避するために、サイズまたは任意の順序でソートするように微調整したいことを除いて、それはうまく機能します。最初の 100 都市のうち、人が選択する可能性が最も高い都市を最初にリストしたいと思います。(人口か?)
[{
"/location/country/iso3166_1_alpha2": "US",
"/location/location/contains":[
"id" : null,
"name" : null,
"/location/statistical_region/population" : { "number" : null, "date" : null }
"type" : "/location/citytown"
]
}]
これは機能しますが、含まれているすべての要素をカウントする必要があるため、非常に遅くなります。
[{
"/location/country/iso3166_1_alpha2": "US",
"/location/location/contains":[
"id" : null,
"name" : null,
"type" : "/location/citytown",
"/location/location/contains":{"return": "count"}
"sort": "-/location/location/contains.count"
]
}]
含めてみ/location/statistical_region/population
ましたが、運が悪かったので、何かアイデアはありますか?