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

Allow configuration of maximum fulltext field size

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.10
    • Component/s: Core VCS
    • Upgrade notes:
      Hide

      In the repository configuration, the <fulltext> element now has a fieldSizeLimit attribute that can control the maximum size of the extracted fulltext. The default is 0, which means unlimited.

      Show
      In the repository configuration, the <fulltext> element now has a fieldSizeLimit attribute that can control the maximum size of the extracted fulltext. The default is 0, which means unlimited.
    • Sprint:
      nxFG 8.10.1
    • Story Points:
      1

      Description

      A multi-gigabyte binary file with an incorrect content-type of text/plain can completely overload the fulltext indexing subsystem.


      It's now possible to limit the size of the fulltext extracted from a document using the fieldSizeLimit attribute on the <fulltext> element of the <repository> configuration:

        <extension target="org.nuxeo.ecm.core.storage.sql.RepositoryService" point="repository">
          <repository ...>
            <indexing>
              <fulltext fieldSizeLimit="1000" ...>
                ...
              </fulltext>
            </indexing>
          </repository>
        </extension>
      

      Or for DBS (where <fulltext> has no enclosing <indexing> element):

        <extension target="org.nuxeo.ecm.core.storage.mongodb.MongoDBRepositoryService" point="repository">
          <repository ...>
            <fulltext fieldSizeLimit="1000" ...>
              ...
            </fulltext>
          </repository>
        </extension>
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: