I am having some problems with my neo4j rails project. I am trying to get a query to work, but I keep getting Index 'node_auto_index' does not exist. I have found this link that appears to solve this if you were running a separate neo4j server. However I am not, I am using the neo4j.rb gem which fixes all this for me, so there is no neo4j.properties file anywhere. 
I though the neo4j.properties were mirrored in the config/application.rb, but when I try to do config.neo4j.node_auto_indexing = true it does not help. 
The cypher query I am trying to do is done like this:
@q = Neo4j._query("CYPHER 1.9 START n=node:node_auto_index('name:*{query}*') 
                  MATCH (n)-[r:CONNECTED*0..6]-(tag) 
                  RETURN reduce(sum = 1, ni IN r: sum * ni.price) LIMIT 6", 'query' => params[:query])
#I have tried with and without the "CYPHER 1.9" part.
How can I solve this? Is there a lucene way of doing the same kind of request? Note the use of reduce which is important. 
Is there a way to get the node_auto_index to work in Neo4j.rb?
Any help would be greatly appriciated!
Versions:
- jRuby 1.7.4
- gem 'rails', '3.2.14'
- gem 'neo4j', '2.3.0-java'
 
     
    