ドロップリスト フィールドが文字列型ではなくテキスト型フィールドとして解決される


解説

ドロップリスト フィールドによる検索中、ドロップリスト フィールドが[fieldName]_sではなく[fieldName]_t形式で解決されます。

解決策

この問題を解決するには、\App_Config\Include\zzz フォルダーに構成パッチ ファイルを作成し、影響を受ける各ドロップリスト フィールドのreturnTypeを明示的に設定します。

<?xml version="1.0" encoding="utf-8" ?>
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:role="http://www.sitecore.net/xmlconfig/role/" xmlns:search="http://www.sitecore.net/xmlconfig/search/">
  <sitecore role:require="Standalone or ContentManagement or ContentDelivery or XMCloud" search:require="solr">
    <contentSearch>
      <indexConfigurations>
        <defaultSolrIndexConfiguration>
          <fieldMap>
            <fieldNames hint="raw:AddFieldByFieldName">
              <field fieldName="<貴社のドロップリスト フィールド名>" returnType="string" />
            </fieldNames>
          </fieldMap>
        </defaultSolrIndexConfiguration>
      </indexConfigurations>
    </contentSearch>
   </sitecore>
</configuration>