Neo4j-PHP-OGM icon indicating copy to clipboard operation
Neo4j-PHP-OGM copied to clipboard

When change node full text index is not remove old data from index

Open atrigub opened this issue 8 years ago • 2 comments

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

atrigub avatar Apr 13 '16 16:04 atrigub

This seems legitimate. I won't have time to look into the issue myself. Could you resolve the issue and submit a PR?

lphuberdeau avatar Apr 13 '16 16:04 lphuberdeau

PR #105 might be related or a similar fix.

lphuberdeau avatar Apr 27 '16 15:04 lphuberdeau