Details
-
Bug
-
Status: Open
-
Normal
-
Resolution: Unresolved
-
2.24.04
-
None
-
None
-
None
Description
Reproduction path:
- Start standard hippo cms from archetype with release to 7.8.4 (-DskipTests=true)
- Start CMS and login
- Into the seachbox of the CMS do the following query:
wat* + + wet* werk* + inkomen* naar* arbeidsvermoge*
Expected:
Two options:
A. An message in the CMS the query is not supported
B. Sanitize the query into a valid query
Result:
In the logs the following errors occur
[INFO] [talledLocalContainer] 20.08.2013 17:02:58 ERROR [org.hippoecm.frontend.plugins.standards.search.QueryResultModel.load():58] Error executing query[text]: //element(*, hippo:harddocument)[(hippo:paths = '2c21a29c-a5d1-4e84-aec4-594e5bf93b25') and (jcr:contains(.,'wat + + wet werk + inkomen naar arbeidsvermoge') or jcr:contains(.,'wat* wet* werk* inkomen* naar* arbeidsvermoge*'))]/rep:excerpt(.) order by @jcr:score descending
[INFO] [talledLocalContainer] javax.jcr.RepositoryException: Exception building query: org.apache.lucene.queryParser.ParseException: Cannot parse 'wat + + wet werk + inkomen naar arbeidsvermoge': Encountered " "" " "" at line 1, column 6.
[INFO] [talledLocalContainer] Was expecting one of:
[INFO] [talledLocalContainer] "(" ...
[INFO] [talledLocalContainer] "*" ...
[INFO] [talledLocalContainer] <QUOTED> ...
[INFO] [talledLocalContainer] <TERM> ...
[INFO] [talledLocalContainer] <PREFIXTERM> ...
[INFO] [talledLocalContainer] <WILDTERM> ...
[INFO] [talledLocalContainer] "[" ...
[INFO] [talledLocalContainer] "{" ...
[INFO] [talledLocalContainer] <NUMBER> ...
[INFO] [talledLocalContainer] <TERM> ...
[INFO] [talledLocalContainer] "*" ...
[INFO] [talledLocalContainer]
[INFO] [talledLocalContainer]
...
Attachments
Issue Links
- relates to
-
CMS-7498 Search in the cms with an apostrophe ' gives a stacktrace and no results
- Closed