Closed mcl-sz closed 6 months ago
This is alright for now, I would prefere populate it when index is setup but than I need get back to classic constructors which introduce a lot redundant code so I think for now I will merge it. I will work tomorrow afternoon on updating docs and releasing this change.
When Umbraco is started and an index already exists, the CurrentIndexName remains null . As a result, the GetDocumentCount, among other things, does not work properly.
I admit that it is not very nice that the CurrentIndexName is set in the IndexExists method in this change, but I couldn't actually find a better place for it.