Sitecore _ Pather字段返回Solr索引中的null



我正在为Sitecore使用Solr索引。

但是,搜索结果总是会给_ path字段的null。

它正在研究Lucene。Solr需要特殊治疗吗?

下面是玻璃映射器属性:

[IndexField("_path"), TypeConverter(typeof(IndexFieldEnumerableConverter))]
        [SitecoreIgnore]
        public virtual System.Collections.Generic.IEnumerable<ID> EntityPath { get; set; }

和SOLR模式有以下条目:

<field name="_path" type="string" indexed="true" stored="false" multiValued="true" />

将您的"存储"设置更改为true:

<field name="_path" type="string" indexed="true" stored="true" multiValued="true" />

存储的属性将确保您的原始值保存在索引中以进行检索。否则,您可以在现场搜索,但不能获取它。

最新更新