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

Solr indexing should not care about the current admin's hidden documents preference

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.4.1
    • Fix Version/s: 4.5-rc-1
    • Component/s: Search - Solr
    • Labels:
      None
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      Because Solr's java modules use the com.xpn.XWiki.getSpaces and com.xpn.XWiki.getSpaceDocsName methods, when (re)indexing with Solr, you can either index all the documents or only not-hidden documents, based on the preference of the admin that performs the index operation. This is caused by the 2 methods that impose the hidden document filter on the internal query that they perform. This has been introduced by the "hidden documents" feature.

      Workaround:
      1. As admin, set your "Display hidden documents" to "Yes"
      2. Go to the Solr Search Admin section in administration and re-index the wiki.
      3. Now you should have indexed all the documents, instead of just the non-hidden ones.

        Attachments

          Activity

            People

            • Assignee:
              enygma Eduard Moraru
              Reporter:
              enygma Eduard Moraru
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: