-
Notifications
You must be signed in to change notification settings - Fork 493
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
apoc.index.* doesn't add or find newly-added nodes in index #329
Comments
@sarmbruster could you look into this? |
Please note that you cannot change a index configuration, so be sure that Can you please try the sketched approach. If it succeeds I guess we should improve the docs on this. |
Hi there @jexp and @sarmbruster, thanks for taking a look! I just tried that, but I'm sorry to say it made no difference. I used Just to be clear, this isn't only a problem with auto-updating. As per the report above, using Thanks - I really hope to get this working, as it'll be an extremely useful feature for us :-) |
Thanks for testing again. I'll run some tests to get a better understanding during next couple of days. |
Great. Thanks. Please do let me know if I can help test anything, happy to do what I can! |
Looks like the documentation is misleading. Can you please try to use |
Hi @sarmbruster, thanks, I'm away from a computer for a couple of days but I'll test it out when I get back. Do you expect this will affect the problem where manually added nodes still don't show in the index? |
No, |
So let's first figure out if index tracking works correctly and afterwards sort out this asymmetry between |
Then we could def. store the label + property information in the index definition in the same way as in |
Ok great thanks! I'll test it on Sunday eve and report back 👍 |
Hi there @sarmbruster, I tried with
and ran the commands below, with the apparent result that:
I ran the session below immediately after a completely fresh VM build including fresh
|
Thanks @igorclark for further testing. To sum up we currently talk about three different issues here. I've opened separate tickets for all of them, see above. Let's continue the specific discussions in the individual tickets. I'll close that "master" ticket off when all sub issues are solved. |
@igorclark meanwhile I've fixed the code in 3.1 branch (no release of this yet), could you please test again. |
Hi @sarmbruster, great, thanks, & please excuse the delay in getting back to you, it took me a bit of time to test all this through. I did a full VM rebuild & reload using The first thing I noticed was that the import took much, much longer than Regardless, here's what happened:
So it's clearly adding the node to an index called But, using a regular The second thing I've noticed might be a separate issue, in which case I'm happy to raise another one, but it seems related, so I'm mentioning it here in case you think it's connected. The issue is that there are other failures trying to remove properties when I have
This previously worked without any errors (on Now (on It doesn't happen on all nodes; when there's a
This is in our import script, and it seems to fail when The thing is, the label So I tried doing this with a completely separate, previously-unused label, and found the same happens:
I tried just deleting the nodes, with a completely empty database with
But with
So I guess your commits have fixed the Sorry for the giant update but it's quite complicated to explain. Hope it makes sense! |
@igorclark thanks again for your help. Some comments on your observations:
Yes, that's expected. When using
On the property removal issue I'll create a subticket being referenced here. |
Hey, great, thanks @sarmbruster! So with this fix we're able to create the new index, add and auto-add nodes to it, and query it using both I'll follow the other one in #367, thanks for creating that - happy to help testing that out too. Cheers! |
Hi @sarmbruster, just got round to re-testing all this on
If I explicitly remove the node from the
Is this expected behaviour? I can live with having to remove nodes from the index, but I had thought the point of Also, as above, with |
@sarmbruster @igorclark I am experiencing the same error. When deleting a node, I get a |
Hi @sarmbruster, wonder if you might have a moment to check this out? It's still kind of in the way of adopting Thanks very much! |
@igorclark sorry for the silence, lots of other stuff to do. However I made good progress on the observed performance penalty upon inserts, see code in my branch: https://github.com/sarmbruster/neo4j-apoc-procedures/tree/jmh. |
Thanks @sarmbruster, that sounds great. Look forward to updates when you can. Appreciate it! |
@sarmbruster ping ? is this fixed? |
waiting for feedback from @igorclark here |
Hello @sarmbruster! Sorry if I misunderstood, I read your last comment as meaning you would be investigating further into the performance and looking into the delete issue. Did I get that wrong? What can I do to help if so? I'm not familiar with the codebase of the plugin itself, just enthusiastic about using it :-) Also the branch you linked seems to be 404-ing right now. |
the PR above was merged and is part of the latest release. I'd be thankful if you could do some testing with currently released apoc version. |
Oh! Wonderful. Sure thing, thanks for letting me know - I'll try it out in the next day or two and let you know how it goes. Thank you 👍 |
Hi again @sarmbruster, I just got to testing this. I'm using Firstly, the GraphML import performance seems to be drastically improved. I'll do this a few more times to make sure I have everything right, but even with Secondly, however, the delete problem still seems to happen. Here's what I get:
As before, if I manually remove the index entry, the error doesn't happen:
Can I do anything else here to help narrow this down? |
Hello, just checking in, anything I can do to help on this one? 😊 |
is the autoIndex issues solved? i'm having the same problem of the autoIndex not automatically indexing new nodes. I have the the stopwatch set to true, but I'm seeing nothing in my debug.log. here is my config
|
I haven't checked for a while as I've been working on other projects. I'd really like to be able to use this though as it would enable some significant feature improvements for my Neo4J project. @sarmbruster I'm sure you've had a lot on your plate too - do you know the current situation with this? Thanks 👍 |
I've pushed a change today forcing the background thread to explicitly wait until db is available. |
Hey @sarmbruster, thanks for the update. I'll keep an eye out for the next release and test it out again then. Cheers. |
Hey @igorclark, I've changed the tx event handler to explicitly remove deleted nodes from the full text indexes. Would be cool if you could give it a try. |
Hi @sarmbruster, thanks for the heads-up! I'll test this later in the week, probably Thursday or Friday, unless I can get to it sooner. Will let you know. Thanks! |
Hi again @sarmbruster, excuse the huge delay. I've finally had a chance to test this on a newer version with the merged code. I've set everything up on 3.4.6 and APOC 3.4.0.2 and it all seems to be working fine. Great news. Thanks! 👍 |
@igorclark thanks for testing again. Happy to hear this is resolved. |
Using Neo4j 3.4.7 with APOC 3.4.0.3 and not seeing the
@sarmbruster any insight into how I can diagnose this issue? |
@jaredhancock31 your issue is not related. Based on a private conversation I've identified yours as an duplicate of #778. Not the symptom but the root cause: use of |
Hi all,
I'm trying to use fulltext indexes from APOC, but I'm not having much luck.
I'm running
neo4j 3.1.2
andapoc-3.1.2.5
ondebian 8.7
.Creating the index on an existing db works as expected:
But although I have "autoUpdate" set in neo4j.conf:
Adding new items doesn't automatically update the index (I've tried restarting the server after creating the index, but it doesn't make any difference):
So I try to add the node to the index manually, but whether I have
autoUpdate
set totrue
or not, adding the node directly withaddNode
doesn't work:Adding with
addNodeByLabel
doesn't work either:Adding the node with
addNodeByName
does add the node to the index:But even then,
apoc.index.search
doesn't find the node:Would be great to know if I'm doing something wrong, or if there's something else going on?
Thanks!
Igor
The text was updated successfully, but these errors were encountered: