Forums

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

Bitbucket Search not returning results as expected

Deleted user December 6, 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
Craig Castle-Mead
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 6, 2021

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
AUG Leaders

Atlassian Community Events