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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 6.0.0, 6.1.0, 6.1.1, 6.1.2
    • Fix Version/s: 6.5.0
    • Component/s: Search
    • Labels:

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: