
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
end
If I go
category = Category.new :name => 'My Category'
Then
Categroy.find(:name => 'My Category')
returns no results.
but If I go
category = Category.new
category.name => 'My Category'
then
Categroy.find(:name => 'My Category')
end
returns results as expected.
Comments and changes to this ticket
-
Andreas Ronge March 30th, 2010 @ 05:25 PM
- State changed from open to resolved
(from [77f38a09f4f565ffd6a239f0977fb959cd591216]) fixing indexing in initializatoin, [#116 state:resolved] http://github.com/andreasronge/neo4j/commit/77f38a09f4f565ffd6a239f...
-
Andreas Ronge January 3rd, 2012 @ 02:41 PM
- Milestone order changed from 0 to 0
(from [8b3b2b7c53e142fc47e6bb337bfb95b47e23d6ee]) Changed prefix of relationships so that it allows having incoming relationships from different classes with different relationship names. Notice that some kind of migration is needed to update an already existing database - see issue #117. closes #116 https://github.com/andreasronge/neo4j/commit/8b3b2b7c53e142fc47e6bb...
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.
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
Tags
Referenced by
-
116 Bug: No index on properties for the initialize method (from [77f38a09f4f565ffd6a239f0977fb959cd591216]) fixing ...