Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,361,409
Community Members
 
Community Events
168
Community Groups

Bitbucket Search not returning results as expected

Deleted user Dec 06, 2021

Within the file saved in a BitBucket repository there is a line that shows as follows 

"AS V_IVRCompleteCount"

if the criteria for my search is as follows it does not return any results 

  • V_IVRComplete
  • IVRCompleteCount
  • V_IVR
  • IVR AND Complete
  • V_ AND IVR
  • IVR Complete
  • IVR AND Complete AND Count

What does work

  • V_IVRCompleteCount
  • IVRComplete

 

It is my expectation that all of this would work in the search and the search functionality is one of the main reason we chose Bitbucket but it doesn't appear to be working as expected. 

1 answer

0 votes

Hey @[deleted] 

Bitbucket's search functionality is provided by Elasticsearch, and which analyzer/tokenizer is used in ES will impact your search/results.

https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-analyzers.html

https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-tokenizers.html

Looking at the bitbucket-search index, it seems that the content field (where the indexed code is stored) it seems that the Standard Tokenizer is being used (https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-standard-tokenizer.html)

 

I've been able to replicate the same type of behavior where there's periods in the text - eg: foo.bar.com - I can find "foo.bar.com" but can't find "bar.com"

It seems these JAC's are relevant, so I suggest voting/watching

https://jira.atlassian.com/browse/BSERV-11589

https://jira.atlassian.com/browse/BSERV-8782

CCM

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

3,494 views 3 10
Read article

Atlassian Community Events