The thing is, when I reindex everything the Searcher gets my node, however when I publish and ReIndex just one node the Searcher doesn't return it.
If I use Luke reader for lucene I can see the node is there and indexed with the new information but I do have to re-open the index. I wonder if I need to do something like this (reopening the index or reloading the index) also on Umbraco before doing the search? And if so, how do I do that?
ReIndex Examine single node doesn't appear on the searcher
I'm trying to reIndex a node into a specific indexer after the node is published. I have successfully done this on the Umbraco Events class like so:
The POIsDataService is the class where I centralize my indexing logic all together and looks like this:
So I have the node.ToPublishedContent() that I took from the great code of Jeroen here https://gist.github.com/jbreuer/dde3605035179c34b7287850c45cb8c9 and it works just fine.
The thing is, when I reindex everything the Searcher gets my node, however when I publish and ReIndex just one node the Searcher doesn't return it.
If I use Luke reader for lucene I can see the node is there and indexed with the new information but I do have to re-open the index. I wonder if I need to do something like this (reopening the index or reloading the index) also on Umbraco before doing the search? And if so, how do I do that?
Well... This was fun...
The solution for this is the following, you need to delete first and only afterwards you can reindex, at least this was what worked for me.
is working on a reply...