Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-11666

The results in code search does not highlight the full sentence in Bitbucket 6.1

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 6.5.0
    • 6.0.0, 6.1.0, 6.1.1, 6.1.2
    • Search

      Issue Summary

      Elasticsearch bundled with Bitbucket 6.1 is now searching for the phrases including dots, commas and other symbols however in the Code Search results the full sentence is not highlighted but only the first word before the dot or comma.

      Environment

      Bitbucket 6.1.2
      PostgreSQL 9.6
      Elasticsearch v.6.5.3

      Steps to Reproduce

      1. Create or import the code into the repository containing the statements with dots, for example java.net.Socket
      2. Let the code search index the changes
      3. Search for "java.net.Socket"

      Expected Results

      The search results contain only full match and "java.net.Socket" is highlighted.

      Actual Results

      The search results contain only full match and "java" is highlighted.

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available. Search results are still accurate even though the full phrase is not highlighted.

            ysun Yingran Sun
            ashaleev Anton Shaleev
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: