jadell / neo4jphp

PHP wrapper of the Neo4j REST interface
Other
532 stars 137 forks source link

Calling NodeFulltextIndex throws an error message #77

Closed gwendall closed 11 years ago

gwendall commented 11 years ago

Calling this function:

$index = new Everyman\Neo4j\Index\NodeFulltextIndex($client,'my_index');

Returns this error message:

Supplied index configuration: {type=fulltext, provider=lucene} doesn't match stored config in a valid way: {provider=lucene, type=exact} for 'my_index'

Any idea why?

jadell commented 11 years ago

I didn't get it to fail on construction, but I did manage to get it to fail after I called $index->save()

The only way it failed for me was if "my_index" already existed and was not a full text index.

jadell commented 11 years ago

You cannot change the type of an index after the index has already been created. Not sure if neo4jphp should prevent you from trying to do this, since the server already prevents it and neo4jphp passes through the error message. If a change in behavior is desired, a new issue can be opened that defines what the desired behavior is.