Count the number of SOLR multivalued Fields

Source: Internet
Author: User
Tags solr
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.