The problem is that there are already several multivalued fields, and the number of multivalued fields needs to be calculated. For example, * doc1 *
<Doc>
<Arr name = "multi">
<STR> 1 </STR>
</ARR>
</DOC>
----------------------
* Doc2 *
<Doc>
<Arr name = "multi">
<STR> 1 </STR>
<STR> 3 </STR>
<STR> 4 </STR>
</ARR>
</DOC>
------------------------
* Doc3 *
<Doc>
<Arr name = "multi">
<STR> 1 </STR>
<STR> 2 </STR>
</ARR>
</DOC> ------------- how can I query documents with only one value in the Multi field? Or a document with two values? This is a Google question. As for Baidu, you know (no useful information can be found). According to some people's summary, the updateproccessor is customized during the update process, internal statistics of item size), or DIH, you can calculate the number of items in the field. Then query this field. For more information, see http://lucene.472066.n3.nabble.com/Query-on-multi-valued-field-td3209343.html.
Count the number of SOLR multivalued Fields