Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-24550

Don't create MongoDB fulltext index when fulltext search is disabled

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 9.10
    • Fix Version/s: 9.10-HF09, 10.2
    • Component/s: Core MongoDB
    • Release Notes Summary:
      The fulltext index is not created on MongoDB when nuxeo.vcs.fulltext.search.disabled=true.
    • Tags:
    • Sprint:
      nxcore 10.2.5
    • Story Points:
      2

      Description

      When using nuxeo.vcs.fulltext.search.disabled=true we want to have the fulltext index only in Elasticsearch so we don't need anymore to maintain the repository index named fulltext.

      org.nuxeo.ecm.core.storage.mongodb.MongoDBRepository#initRepository must be updated to not create the index on startup when nuxeo.vcs.fulltext.search.disabled=true.

      This way we can drop manually the index when switching fulltext search to Elasticsearch, so we don't waste resource to maintain this unused index.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours
                  2h