Changes to Custom IndexProviders Implementation in Sitefinity 3.6 SP1

By in
No comments

In case you are using some of the Custom Index Providers I blogged about previously, you may encounter some errors when upgrading to the new Sitefinity 3.6 SP1 that was released this week.

The problem is that the IIndexerInfo interface how requires a new method, ResolveIndexPath(). Since the Sitefinity team is still catching up on documentation, I didn’t know what exactly this is used for. Fortunately, with the use of Reflector, it turns out that this simply returns the Path property.

public string ResolveIndexPath()
{
    return Path;
}

Actually, this method is also supposed to take into account culture information, modifying the link if necessary. However, if you do not require this, and I don’t, then you are safe with just returning the path.

Now with this change, your index providers should compile correctly, and successfully index your site. I hope this was helpful! As always, comments are welcome and appreciated.

The following two tabs change content below.

selaromdotnet

Senior Developer at iD Tech
Josh loves all things Microsoft and Windows, and develops solutions for Web, Desktop and Mobile using the .NET Framework, Azure, UWP and everything else in the Microsoft Stack. His other passion is music, and in his spare time Josh spins and produces electronic music under the name DJ SelArom. His other passion is music, and in his spare time Josh spins and produces electronic music under the name DJ SelArom.