Skip to content

Spatial Index #140

@tommykennedy

Description

@tommykennedy

Hi Dario,

Is it possible to create a spatial index in a model definition?

 module.exports = {

 attributes: {
  id: { type: 'string', primaryKey: true, columnName: '@rid'},
  latitude: {type: 'float'},      
  longitude: {type: 'float'}
  /*How to define spatial index*/
 }
};

The spatial index on the orientdb-lucene example shows that you create a compound key

E.G
CREATE INDEX Place.l_lon ON Place(latitude,longitude) SPATIAL ENGINE LUCENE

I was wondering can this be done.

https://github.com/orientechnologies/orientdb-lucene/wiki/Spatial-Index

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions