Mike Barnes
Mike Barnes

Reputation: 4305

Auto indexing not working

I am having some trouble getting my auto indexing to work.

While the neo4j service was stopped I changed the neo4j.properties file and set: #node_auto_indexing=true

Then typed my indexing keys like so: #node_keys_indexable=Name,Type,GUID,CurrentVersion,DateTimeCreated,CurrentVersionDateTimeCreated,VersionCount,CustomerName,DocumentReferece,Version.

I then started the service again and did the following: neo4j-sh (0)$ index --create node_auto_index -t Node

I then created some nodes and ran the following query:

neo4j-sh (0)$ start n = node:node_auto_index(Name = "Quote") return n;

The results were:

==> +---+
==> | n |
==> +---+
==> +---+
==> 0 row
==> 237 ms 

I am using neo4j-advanced-2.0.0-M02 with the Neo4jClient for .NET and C#. Is there anything that I am doing wrong here or are there perhaps any other configuration steps that I am missing.

I have tried the following: 1, 2

Upvotes: 1

Views: 347

Answers (1)

Eve Freeman
Eve Freeman

Reputation: 33175

Do you really have # in front of your config file lines still?--because if so, they're commented out. You shouldn't need to manually create an autoindex.

Upvotes: 2

Related Questions