0
edismax defType 및 multiValued 필드를 사용할 때 일치하지 않습니다.내 multiValued 필드에 일치 항목이 표시되지 않습니다.
<requestHandler name="/search" class="solr.SearchHandler">
<lst name="defaults">
<str name="echoParams">explicit</str>
<str name="defType">edismax</str>
<str name="q.alt">*:*</str>
<str name="rows">20</str>
<str name="fl">*,score</str>
<str name="qf">
title^1.8
</str>
</lst>
</requestHandler>
및 schema.xml 정의.
<types>
<fieldtype name="string" class="solr.StrField" sortMissingLast="true" omitNorms="true"/>
<fields>
<field name="title" type="string" indexed="true" stored="true" multiValued="true" />
문서를 확인하면 완벽하게 일치하는 문서가 반환됩니다.
"docs": [
{
"id": 3,
"title": [
"logo"
],
"_version_": 1465224933480071200,
"score": 1
},..
하지만 다음 쿼리를 실행할 때, numFound이 다중 값 = "false"를 필드로 발생하지 않습니다 0
/solr/core1/search?q=logo&wt=json&indent=true
입니다.
아이디어가 있으십니까?