如果我没记错的话,这是一个配置问题,即Lucene Index Configrations
文件夹中的App_Config/Includes
文件。很可能是Sitecore.ContentSearch.Lucene.DefaultIndexConfiguration.config
在您的解决方案中创建的文件或自定义文件。
通常,当TypeConverter
配置中缺少 a 时,您会看到这些类型的错误,因为您可以看到它在StackTrace
. 例如,为了使索引正确转换,DateTime
将这一行添加到DefaultIndexConfiguration.config
文件中。确认以下行在您的*.DefaultIndexConfiguration.config
文件中
<converter handlesType="System.DateTime" typeConverter="Sitecore.ContentSearch.LuceneProvider.Converters.IndexFieldDateTimeValueConverter, Sitecore.ContentSearch.LuceneProvider" />
还值得确定Field
导致错误的原因。可能最近向模板添加了一个新字段,或者DateTime
字段中的原始值的格式不正确,因为DateTime
Sitecore 以ISO 8601
格式存储其日期,即yyyyMMddThhmmss