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

Make the configuration of the solr search in the tree as customizable as possible

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • None
    • 11.3.6
    • Tree
    • None
    • Unknown

    Description

      Today, the search that is displayed by the tree to find pages in the tree is using the solr search but it uses hardcoded parameters for this solr search, in (e.g. the qf is hardcoded in XWiki.DocumentTreeMacros in macro searchDocumentsSolr https://github.com/xwiki/xwiki-platform/blob/stable-11.3.x/xwiki-platform-core/xwiki-platform-index/xwiki-platform-index-tree/xwiki-platform-index-tree-macro/src/main/resources/XWiki/DocumentTreeMacros.xml#L1084 ).

      If a customization is made for the search in the search of the wiki or in the suggestion sources, for example to have custom weights defining the relevance of a search result, these customizations cannot be easily applied to this search.
      The improvement is about either making it easier to customize these parameters (for example with an administration section) or using the wiki's search configuration to read them rather than having them hardcoded in this script, in order to be able to easily make an uniform search configuration.

      Attachments

        Activity

          People

            Unassigned Unassigned
            lucaa Anca Luca
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: