Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't reindex explicit node_auto_index #11945

Closed
francescoinfante opened this issue Jun 15, 2018 · 0 comments
Closed

Can't reindex explicit node_auto_index #11945

francescoinfante opened this issue Jun 15, 2018 · 0 comments

Comments

@francescoinfante
Copy link

I have encountered a regression in Neo4j 3.4. In Neo4j 3.3.x, if I had to reindex the explicit automatic index node_auto_index I would have run the following Cypher query:

MATCH (p) SET p.`name` = p.`name` RETURN count(p)

In Neo4j 3.4, this query doesn't reindex anymore existing nodes in node_auto_index. But, if I actually apply an update to the node:

MATCH (p) SET p.`name` = 'lol' RETURN count(p)

I can search the node by its name in node_auto_index.

Neo4j Version: 3.4.0
Operating System: OS X 10.13

Steps to reproduce

  1. Have a Neo4j dataset with same nodes with property key "name". One node with name: "test"
  2. Configure the node_auto_index by adding to the Neo4j config file and restart Neo4j:
  • dbms.auto_index.nodes.enabled=true
  • dbms.auto_index.nodes.keys=name
  1. Run START i=node:node_auto_index('name:test') return i limit 1
    Nothing should be returned
  2. Run MATCH (p) WITH p, p.name as name SET p.name = name RETURN count(p)
  3. Run START i=node:node_auto_index('name:test') return i limit 1
    The node should be returned

In 3.3.x it works as described. In 3.4.0 the node at step 5 is not returned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants