Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-20533

Exact phrase matching in code search

    XMLWordPrintable

Details

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      Hello,
      For now if I type "find bug" in search textbox search returns all files where are this words in that order no matter where they are placed. I.e. file with text "find crtitical bug" will be 'valid' result.
      If I trying to find "skin/skin" phrase I will got many "trash" files where "skin" placed 2 times but not exact phrase.

      Also it's useful to find exact method call with specifed parameters. As described in this (I think related to this task) discussion 3 years ago:

      Bitbucket Code Search EXACT method call

      So I suggest to add a way to search exact phrase matches.

      Example:
      Let's say we have 3 source code files with texts:

      1. " Skin [] skins = { new Skin (1), new Skin (2) } ".
      2. " Url = '//path/skin/skin/static' ".
      3. " We use skin generator to construct skin at runtime ".

      Do:
      Type in search textbox: "skin/skin"

      Actual: all 3 files are in the search result
      Expected: only file 2 are shown.

      Attachments

        Activity

          People

            Unassigned Unassigned
            79d2f0dbdfbb Pavel Teplukhin
            Votes:
            48 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated: