首页 文章

Sitecore _path字段在Solr索引中返回NULL

提问于
浏览
2

我正在使用Siter的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" />

1 回答

  • 4

    将“商店”设置更改为true:

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

    stored属性将确保您的原始值保留在索引中以供检索 . 否则,您可以在该字段中搜索,但不能获取它 .

相关问题