Neo4j-PHP-OGM
Neo4j-PHP-OGM copied to clipboard
When change node full text index is not remove old data from index
Example:
class Cinema
{
/**
* @OGM\Index(name="FulltextIndex", type="fulltext")
*/
protected $name
}
$cinema = new Cinema();
$cinema->setName("Test");
$this->manager->persist($cinema);
$this->manager->flush();
Run cypher query "START node = node:FulltextIndex("name:tes*") RETURN node" return Cinema node.
$cinema->setName("New name");
$this->manager->persist($cinema);
$this->manager->flush();
Run cypher query "START node = node:FulltextIndex("name:tes*") RETURN node" return Cinema node all the same
This seems legitimate. I won't have time to look into the issue myself. Could you resolve the issue and submit a PR?
PR #105 might be related or a similar fix.