Search does not work due to incompatible search server version
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. 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
1
2
3
4
5
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.
Was this helpful?