Use Cypher query when finder method does not have a lucene index #210

andreasronge opened this Issue Aug 14, 2012 · 0 comments

1 participant

Neo4jRB member

I want to be able to find anything even if there is no lucene index.
I also want to find relationships.
But if there is a lucene index on the property in the given condition hash then a lucene query should be used instead.


class User < Neo4j::Rails::Model

class Note < Neo4j::Rails::Model
  has_one(:owner).from(User, :notes)

Note.first(:owner => user)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment