Is this an integrated feature or add-on ?

This question is in reference to Atlassian Documentation: Bitbucket Server 4.6 release notes

Is the ability to search-code across repositories an integrated feature or add-on ?

1 answer

3 votes

Code search is an integrated feature with Bitbucket Server 4.6.0.

For a normal instance, Elasticsearch is automatically installed and runs alongside your Bitbucket server to index changes to your code. So it should just work out of the box. For Data Center we require you to set up your own ES instance and configure Bitbucket so that it knows where to send code changes.


For more information on how code search works in Bitbucket Server, see

I am running on Bitbucket 4.3.2 server. If I upgrade version to 4.6.0, will it automatically setup elasticsearch OR do I need to consider it separately. 

Steve King Atlassian Team May 09, 2016

4.6.0 comes bundled with Elasticsearch. It will be included setup process.

As Steve said, it will automatically setup elasticsearch when you run the upgrade installer.

I found that Bitbucket 4.6.0 expected elasticsearch to be on port 7992, but the bundled elasticsearch actually came up on port 9200.  Is this because I did the install via the Bitbucket 4.6.0 tar-ball and did not run the upgrade installer?

@Neil O'Neill The bundled Elasticsearch should come up on port 7992 regardless of installation method. Try the installer if you can, otherwise submit a support ticket at with the steps for how you attempted to set up the tarball, and we can look into it in more detail.

@Kristy Hughes   -  I am running Bitbucket on a linux server and before I proceed with upgrade from 4.3.2 to 4.6.0, would like to know what does below NOTE means. I read this at


Important note for Data Center users

Bitbucket Data Center 4.6+ does not use the bundled Elasticsearch instance. Instead, you must provision an Elasticsearch instance separately when installing Bitbucket Data Center 4.6+.

Hi @Akul Bhatnagar,

For non Data Center users, we provision and start an Elasticsearch instance with the installer. Bitbucket needs a single URL for Elasticsearch - and for the case of non Data Center users the obvious choice is to install Elasticsearch alongside Bitbucket Server and point the url to localhost. 

For Data Center customers, Bitbucket Server is installed on two nodes, and lies behind a load balancer so that it can be accessed from a single url. If we installed Elasticsearch with the installer for Data Center customers, they would end with two Elasticsearch instances on the same instance that their Bitbucket is installed. Since Bitbucket requires a single URL to access Elasticsearch, this wouldn't work. Since Datacenter customers' instances vary widely, we decided that it was best for them to provision their own Elasticsearch instance, instead of using the one that comes with the installer. When you run the installer, if you select that you are installing or upgrading a Datacenter instance, we do not install Elasticsearch but instead assume that you have already set up an Elasticsearch instance.


For more information on how to set up Elasticsearch for Datacenter, see

Hi Bitbucket users,


We are running our Stash DC instance on 3.11.2 and planning to upgrade to Bitbucket 4.7.1 which has inbuilt elastic search functionality. 

Do we need to elastic search on same nodes of Bitbucket DC have or it should be on remote instance other than Bitbucket DC



Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

660 views 5 9
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you