1
arangodbでいくつかのジオクエリを実行しようとしましたが、結果が得られません。ここで がArangoDB WITHINとNEARクエリは決して結果を返しません。
ID Type Unique Sparse Deduplicate Selectivity Est. Fields
13362 geo2 false true n/a n/a latitude, longitude
Webインターフェイスに存在する例fooのレコードは、Webインターフェイスからインデックスを確認し、私は
Created index (in java)
final Collection<String> fields = new ArrayList<String>();
fields.add("latitude");
fields.add("longitude");
db.collection("foo").ensureGeoIndex(fields,null);
を試してみましたが、何である
{"properties":{"latitude":37.78808138412046,"longitude":-122.080078125}}
Webインターフェイス
内のクエリウィンドウからFOR doc IN NEAR(@@collection, @latitude, @longitude, @limit)
RETURN doc
binding
@collection foo
latitude 37.78808138412046
longitude -122.080078125
limit 50
常に私は質問を完了するために、正確な場所
Info:
using storage engine mmfiles
ArangoDB 3.2.8 [darwin] 64bit, using jemalloc, VPack 0.1.30, RocksDB 5.6.0, ICU 58.1, V8 5.7.492.77, OpenSSL 1.0.2k 26 Jan 2017
私はそれを理解しました。私は代わりにトップレベルのフィールドとしてそれを持ってプロパティオブジェクトの場所の値を入れ子にしていた –