OrientDB wurde von 2.2 auf Spatial Module aktualisiert.Wie erstellt man einen Index für das räumliche Modul für OrientDB (2.2.x)?
Was ist die Java-Äquivalent den Index für diese zu erstellen:
CREATE INDEX ON (Geometrie-Feld) SPATIAL ENGINE LUCENE
sagen, für das Beispiel:
ODocument location = new ODocument("OPoint");
location.field("coordinates", Arrays.asList(12.4684635, 41.8914114));
ODocument doc = new ODocument("Restaurant");
doc.field("name","Dar Poeta");
doc.field("location",location);
doc.save();
Ref: http://orientdb.com/docs/2.2/Spatial-Index.html
(Ich sah hier einen Code: [http://orientdb.com/docs/2.1/Spatial-Index.html] aber scheint dies für die vorherige Version „räumlichen Index“ ist, nicht „Raummodul“ von 2,2 ab.)
Siehe die aktualisierte Dokumentation: http://orientdb.com/docs/last/Spatial-Index.html –