-
Customize Solr Managed Schema in Sitecore 9+
In Sitecore 9+ we can now populate Solr managed schema through the Sitecore control panel. It is still possible to use the legacy schema.xml files, but it is actually a lot more comfortable to be able to just deploy the schema with one click. Sitecore currently has some basic schema which it populates and has…
-
Use System.Boolean when indexing checkbox fields
I faced the issue that checkbox values were not being updated in the index correctly. When I unchecked a checkbox and saved, the index would still have “1” stored as value for my field. To prevent this issue, use Sytem.Boolean as type instead of System.String. <field fieldName=”MyCheckboxField” storageType=”YES” indexType=”TOKENIZED” vectorType=”NO” boost=”1f” type=”System.Boolean” settingType=”Sitecore.ContentSearch.LuceneProvider.LuceneSearchFieldConfiguration, Sitecore.ContentSearch.LuceneProvider” />…
-
Determining the Context Index when performing bucket queries
We have faced a problem when working with multilists and custom indexes. Some of our multilists would not contain any data even though the lucene queries would have matches when querying the index directly. We found that the problem had to do with the way Sitecore determines the index to perform the bucket query on. Reason When…
-
Unable to create document builder – crawling exception after upgrading to SC 7.2
After upgrading to Sitecore 7.2 I ran into this exception in the crawling log when trying to index PDF documents: Unable to create document builder (). Please check your configuration. We will fallback to the default for now. The solution was to add the document builder type to my custom index configuration: <documentBuilderType>Sitecore.ContentSearch.LuceneProvider.LuceneDocumentBuilder, Sitecore.ContentSearch.LuceneProvider</documentBuilderType> After…
-
NullReferenceException in custom Index after upgrading to Sitecore 7.2
After upgrading to Sitecore 7.2 we got the following exception when trying to build our custom indexes: The resolution to this is quite simple. Sitecore has included <initializeOnAdd> to the index configuration. If this field is missing in the configuration, building the index fails. Just make sure you have the following line to your custom…