solrクエリについて、2つの複数値フィールドがあるという質問が1つあります。フローそれはスキーマの一部です:
<field name="attribute" type="text" indexed="true" stored="true" multiValued="true"/>
<field name="locale" type="text" indexed="true" stored="true" multiValued="true"/>
xmlからデータを読み取ります。
<docs>
<doc>
<id>01000</id>
<name>product1</name>
<price>102.5</price>
<attributes name="description">
<str attribute="this is english description" locale="en_US" />
<str attribute="this is chinese description" locale="zh_CN" />
</attributes>
</doc>
</docs>
問題は、「q = attribute:english AND locale:en_US」または「q = attribute:english AND locale:zh_CN」のいずれかのクエリ条件がこのドキュメントを返す可能性があることです。
条件が「q=attribute:englishAND locale:en_US」または「q = attribute:chinese AND locale:zh_CN」でドキュメントを返すことができる場合にのみ希望しますが、どうすればよいですか?
ありがとうございました!