Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Inconsistent search results in bitbucket

Matt Van Laanen
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 24, 2024

We are currently getting inconsistent results when searching using 'search for code'. 

The phrase we are trying to search for is 'BPCS'.  When searching on this we find no results.  The problem is related searches do find data.

search for...

'BPC'         returns results

'BPCS'       no results returned

'BPCSE'     no results returned

'BPCSED'   no results returned

'BPCSEDI'   returns results

 

 

We have found the limitations of the bitbucket search and this does not appear to be in any of those rules.

  • Only the default branch is searchable (for most repositories the default branch will be master).
  • Only files smaller than 512 KiB are searchable.
  • Wildcard searches (e.g. qu?ck buil*) are not supported.
  • Punctuation now supports "." and "_"
  • All punctuation characters are removed. !"#$%&'()*+,-/:;<=>?@[\]^`{|}~
  • Regular expressions in queries are not supported, but you can search for special characters.
  • Case is not preserved, however search operators must be in ALL CAPS.
  • Queries cannot have more than 9 expressions (e.g. combinations of terms and operators).
  • The maximum length of a query cannot exceed 250 characters.
  • Only code you have permission to view will appear in the search results.

 

Any thoughts would be appreciated.

1 answer

1 accepted

1 vote
Answer accepted
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 26, 2024

Hello @Matt Van Laanen ,

and welcome to the Community!

It seems you're being affected by a known bug in the platform where Code search does not consistently returns the expected results. This has been already reported to our engineering team and they are actively working on a solution:

I'd encourage you to add your Vote to the bug ticket to give it traction, and also mark yourself as a Watcher to be notified of any future updates.

While the bug is not fixed, as an alternative you can search your code base locally using git grep command:

git grep hello $(git rev-list --all)

Thank you, @Matt Van Laanen !

Patrik S

Matt Van Laanen
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 2, 2024

appreciate the info.  thanks.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
AUG Leaders

Atlassian Community Events