AnsweredAssumed Answered

New node indexing

Question asked by schipmolder on Sep 12, 2015
Latest reply on Sep 12, 2015 by schipmolder
I've been running into this issue quite a few times and usually find a way around it but I would like to understand what i can do differently for the next time it becomes an issue so all suggestions are much appreciated.

Imagine 2 webscripts, one that creates a node of custom type X and another that lists  all nodes of that same custom type X.
Now when I call the first web script the node gets created and i can get it's nodeRef etc, but when I then call the second web script that same node isn't found. This lasts for about 10 to 15 seconds and then the node is listed.

I assume (but correct me if I'm wrong) that this is because of the indexing settings of, in this case, SOLR and that it takes 15 seconds for it to realise a node has been added and for it to be indexed, but is there a way to change this so the node is found immediately after it has been created?

Outcomes