Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spatial Index #140

Open
tommykennedy opened this issue Nov 2, 2015 · 0 comments
Open

Spatial Index #140

tommykennedy opened this issue Nov 2, 2015 · 0 comments

Comments

@tommykennedy
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant