Indexes? #10

mindeavor opened this Issue Apr 6, 2012 · 3 comments

3 participants


Are indexes on the roadmap? What would it take to implement them?


I have not yet worked with neo4j indexes, as all my projects rely on elasticsearch for data indexing. But I guess it would not be too much work. Have you thought about the api to access the index? How would you like to have it?


Sorry for the delay, I've been sick recently.

My use case is unique usernames. It'd be nice to write a simple index :username similar to neo4j.rb. On the other hand, neo4j has support for unique indexes, so maybe it'd be better to have that separate from normal indexes (perhaps like unique :username?).

What are your thoughts? I'm new to neo4j, so my opinion doesn't weigh too much.


neoid gem has an index implementation, not too sure the code would help but the usage is quite clean, inside the model you define a block with the fields you want to have indexed, a .fulltext and .exact is used to define each one. Actually when I think about it, it looks a little like how you define them using thinking_sphinx.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment