When you submit a document in JSON, SOLR: Atomicupdatedocumentmerger Unknown operation for the A atomic update, operation ignored

Source: Internet
Author: User
Tags solr

The document is the JSON that the array turns into

Original array:

Array
0 =>3,
1 =>3,
2 =>4,
3 =>5,
4 =>5,
5 =>6
)

Insert the Times error after removing the repeating elements in the array with Array_unique.

Reason:

After the array_unique is removed, the subscript of the original array is retained. Array is

Array (
0 =>3,
2 =>4,
3 =>5,
5 =>6
)

In the Json_encode array, the subscript discontinuous array is parsed into a JSON string such as {"0": "3", "2": "4", "3": "5", "5": 6}. Expect {["3", "4", "5", "6"]}. The cause of this error is that the subscript is discontinuous. The index needs to be reorganized, so after Array_unique, the array_values is executed and the subscript of the array is re-arranged. This will not be considered an atomic update when submitting to SOLR's update handler.

When you submit a document in JSON, SOLR: Atomicupdatedocumentmerger Unknown operation for the A atomic update, operation ignored

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.