...
Go to
Smarter Search for Bitbucket Global Settings
page in the Bitbucket admin panel.Enable
Indexing
by clicking the check box.Click
Save and Reindex
to save the settings and subsequently reindex all repositories.
External Node (Elasticsearch 2.4.6)
Plugin requires groovy script support but it’s not enabled by default. So Elasticsearch config file (elasticsearch.yaml) like below is required:
Code Block | ||
---|---|---|
| ||
cluster.name: stash-codesearch
client.transport.cluster.host: 127.0.0.1
client.transport.cluster.port: 9300-9305
client.transport.sniff: true
script.inline: on
script.indexed: on
script.engine.groovy.inline.update: on
script.engine.groovy.inline.aggs: on
index.query.bool.max_clause_count: 10240 |
Besides changes above Delete By Query plugin needs to be installed.
You can use the command:
Code Block | ||
---|---|---|
| ||
plugin install delete-by-query |
External Node (Elasticsearch 2.1.1)
You must first setup an external Elasticsearch cluster. For help on that, look here. Make sure you install the Delete By Query plugin as well. The scripts we've included will do this for you. Smarter Search for Bitbucket has a configuration page in the global settings to use to point to your Elasticsearch instance.
...