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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 4.5-rc-1
    • 4.4.1
    • Search - Solr
    • None
    • Unknown
    • N/A
    • N/A

    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

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

            Dates

              Created:
              Updated:
              Resolved: