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

Fix error handling when using Elasticsearch for nxql_search

    XMLWordPrintable

    Details

    • Tags:
    • Sprint:
      nxNag Sprint 7.3.6

      Description

      When turning the NXQL Search into Elasticsearch from nuxeo.conf:

      elasticsearch.override.pageproviders=default_search,nxql_search
      

      Once there is a syntax error on the NXQL there are red error boxes on the right complaining with "An empty response was received from the server. Check server error logs."

      Even after fixing the query the same error is raised, changing kind of search does not work.

      Refreshing the page give the error page with the first syntax error details like:

      Syntax error: Invalid token <INDeX> at offset 36
       javax.servlet.ServletException: /incl/content_view.xhtml @85,16 value="#{contentView.pageProvider.hasAggregateSupport() ? contentView.pageProvider.aggregates : null}" /incl/content_view.xhtml @85,16 value="#{contentView.pageProvider.hasAggregateSupport() ? contentView.pageProvider.aggregates : null}": Error reading 'aggregates' on type org.nuxeo.elasticsearch.provider.ElasticSearchNxqlPageProvider at javax.faces.webapp.FacesServlet.service(FacesServlet.java:659)...
      ...
      Caused by: org.nuxeo.ecm.core.query.QueryParseException: Syntax error: Invalid token <INDeX> at offset 36
          at org.nuxeo.ecm.core.query.sql.parser.parser.parseFailed(parser.java:519)
      

      workaround: logout/login

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: