Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-11472

Highlight the most relevant match when searching in documentation

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.6
    • Component/s: Documentation, Web
    • Labels:
      None
    • Estimate:
      Hours
    • Edition:
      Community
    • Production Notes:
      None

      Description

      Each document has several matches, some of them are exact, some of them are fuzzy. We define the result relevancy (and therefore the position) according to these matches.

      Then we highlight the first matching word in the text and keep some context around. The idea is to highlight not the first match, but the first exact match, it’d give better impression.

      Implementation note: this should be done for both the embedded docs and for the static website.

        Attachments

        1. Screen Shot 2018-12-26 at 12.37.02.png
          44 kB
          Wouter Admiraal
        2. Screen Shot 2018-12-26 at 12.37.17.png
          44 kB
          Wouter Admiraal
        3. Screen Shot 2018-12-26 at 14.36.18.png
          78 kB
          Wouter Admiraal
        4. Screen Shot 2018-12-26 at 14.36.37.png
          49 kB
          Wouter Admiraal

          Activity

            People

            • Assignee:
              wouter.admiraal Wouter Admiraal
              Reporter:
              stas.vilchik Stas Vilchik (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved: