Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Bitbucket Search not returning results as expected

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 @ryan_weaver 

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

⭐ Calling all Bitbucket and DevOps experts: Special showcase opportunity ⭐

Hi, Bitbucket community! Are you a DevOps practitioner (or know one in your network)? Do you have DevOps tips, tricks, or learnings you'd like to share with the community? If so, we'd love to hea...

1,480 views 4 7
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you