-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 6.0-HF10, 7.2
-
Component/s: Elasticsearch, Query & PageProvider
-
Tags:
-
Sprint:nxNag Sprint 7.3.6
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