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

Provide configuration options for the number of code fragments returned from a search

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • None
    • Search
    • None
    • 25
    • We collect Bitbucket feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    Description

      Current behaviour

      • When a search is performed, up to 3 fragments of code will be returned for a given file that contains content that match the search query
      • Each of these fragments can contain multiple occurrences of the search string
      • Each of these fragments is a chunk of up to 1400 characters
      • The maximum number of fragments is currently set to 3. This setting is not configurable.
      • If there were more occurrences of the search term outside of these 3 fragments, they will not be retuned as search matches.

      Sample:

      • 2 files were found containing the search string "gitactivity"
      • the first file shows 3 fragments showing multiple occurrences of the term. other occurrences of the term outside of these 3 fragments are not shown.

      New feature request

      • Provide the ability to configure the maximum number of fragments returned for code search to be able to show more results

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jmariano@atlassian.com JP Mariano
              Votes:
              15 Vote for this issue
              Watchers:
              16 Start watching this issue

              Dates

                Created:
                Updated: