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

including minus char (stop-words) in full-text constraints causes storage exception on postgresql

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 5.3.2
    • Fix Version/s: None
    • Component/s: Core VCS

      Description

      Here is an example of this :

      org.nuxeo.ecm.core.api.WrappedException: Exception: org.nuxeo.ecm.core.storage.StorageException. message: Invalid query: SELECT * FROM Locationitem WHERE collectionspace_core:tenantId = 1 AND (ecm:currentLifeCycleState <> 'deleted' AND locations_common:inAuthority='89ad6caa-02dc-4ccf-ad8a' AND (ecm:fulltext LIKE 'security - note')) AND ecm:isProxy = 0 ORDER BY collectionspace_core:updatedAt DESC
      ... at org.nuxeo.ecm.core.storage.sql.coremodel.SQLSession$SQLSessionQuery.execute(SQLSession.java:506) ...
      Caused by: org.nuxeo.ecm.core.api.WrappedException: Exception: org.postgresql.util.PSQLException. message: ERROR: syntax error in tsquery: "security & ! & note"

      For being more robust, we want to suppress stop words from the full-text constraints and log a warn about, before sending them to the indexer.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                slacoin Stéphane Lacoin
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: