Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-7009

Searching for "panel wizard" or "stream" doesn't return the most relevant documents as the top search results

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.2 M2
    • Fix Version/s: 3.2 M3
    • Component/s: Old Core
    • Labels:
      None
    • Difficulty:
      Easy
    • Similar issues:

      Description

      This happens because the velocity context used when indexing doesn't contain the $msg variable, so the indexed title is the verbatim "$msg.get('translation.key')", which doesn't match the search terms.

      A new VelocityContextInitializer which adds the $msg variable in every velocity context created should solve this issue.

        Attachments

          Activity

            People

            Assignee:
            sdumitriu Sergiu Dumitriu
            Reporter:
            sdumitriu Sergiu Dumitriu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: