bielu / bielu.examine.providers

MIT License
1 stars 1 forks source link

CurrentIndexName is null when index already exists #7

Closed mcl-sz closed 6 months ago

mcl-sz commented 6 months ago

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.

bielu commented 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.