Search does not work due to incompatible search server version
Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
After setting the remote search server and connecting successfully with Bitbucket Data Center - the code search does not work.
The following appears in the atlassian-bitbucket
.log
2023-04-20 10:03:34,464 ERROR [Caesium-1-1] c.a.b.i.s.i.s.StreamingComparator Unable to perform job due to an unexpected error
java.lang.IllegalStateException: Object content expected to have '_type' field, but was not present; present fields: _index, _id, _score, sort
[...]
Caused by: rx.exceptions.OnErrorThrowable$OnNextValue: OnError while emitting onNext value: com.atlassian.elasticsearch.client.search.SearchResponse.class
[...]
Environment
Bitbucket Server or Data Center with a remote standalone search server
Cause
This is due to an unsupported search server version.
Solution
Redo the setup for the search server using the supported version and integrate it with Bitbucket Data Center. Please refer to the respective Supported Platform for the specific Bitbucket Data Center version; Bitbucket Supported Platform.