Parameter name: fieldNameTranslator – Sitecore 9

I’m currently experimenting with Sitecore indexes, specifically both Solr and Lucene. I’ve successfully created a custom index that functions properly with Lucene. However, I’m encountering an issue when trying to use it with Solr.

The problem I’m facing is that the FieldNameTranslator is null for my index when I utilize the Solr configuration.

Solution:

 In my case, it was due to a misconfiguration in the sitecore/settings/setting[@name="ContentSearch.Solr.ServiceBaseAddress"] value.

You can find where this is set in the App_Config\Sitecore\ContentSearch\Sitecore.ContentSearch.Solr.DefaultIndexConfiguration.config configuration file. Check that this value points to the Solr instance you’re using, and confirm that the protocol is the same. For us, an update had overridden the value we had from https to http which caused the errors.

Important the protocol is https 😉

<setting name="ContentSearch.Solr.ServiceBaseAddress" value="https://solr-techsolutionhub:9090/solr" />

Deixe um comentário

Trending