#116 ✓resolved
Andreas Ronge

Bug: No index on properties for the initialize method

Reported by Andreas Ronge | March 28th, 2010 @ 11:01 PM | in 0.4.2

The NodeMixin#init_without_node(props) uses the
Neo4j.create_node props method which does not index properties
Need to use for example the JavaPropertyMixin#[] operator to get it indexed.

 class Category
   include Neo4j::NodeMixin
   property :name 
   index :name

If I go

category = Category.new :name => 'My Category'
Categroy.find(:name => 'My Category')
returns no results.

but If I go

category = Category.new 
category.name => 'My Category'
Categroy.find(:name => 'My Category')
returns results as expected.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Neo4j.rb is a graph database framework for JRuby.

It provides:

* Mapping of ruby objects to nodes in networks rather than in tables.
* Storage of ruby object to a file system.
* Fast traversal of relationships between nodes in a hugh node space.
* Transaction with rollbacks support.
* Indexing and quering of ruby objects.
* Integration with Rails

People watching this ticket


Referenced by