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