[
https://jira.nuxeo.org/browse/NXP-4999?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mariana Cedica updated NXP-4999:
--------------------------------
Status: Open (was: Triage)
> Escape the "?" character when seraching docs on the compass backend (using
> lucene-core.2.0.0)
> ---------------------------------------------------------------------------------------------
>
> Key: NXP-4999
> URL: https://jira.nuxeo.org/browse/NXP-4999
> Project: Nuxeo Enterprise Platform
> Issue Type: Bug
> Components: Search / Query
> Affects Versions: 5.2 M1
> Reporter: Mariana Cedica
> Assignee: Mariana Cedica
>
> Leading Wildcards ( Eg. ? *) are not supported in lucene-core 2.0.0 . So we
> can enable the search for the character "?".
> But, executing a query containing a "?" in a where clause throws the
> following exception:
> ERROR [QueryModel] sorted query failed: SELECT * FROM Document WHERE
> (pccr:sender_reference LIKE '?') AND (ecm:isCheckedInVersion = 0 AND
> ecm:isProxy = 0 AND NOT
> ecm:currentLifeCycleState IN ('deleted', 'draft') AND
> ecm:primaryType
> IN ('PleiadeOutgoingEmail', 'PleiadeIncomingEmail',
> 'PleiadeIncomingEmail_Invoice')) ORDER BY dc:modified DESC
> org.nuxeo.ecm.core.search.api.client.SearchException:
> org.nuxeo.ecm.core.api.WrappedException: Exception:
> org.nuxeo.ecm.core.search.api.client.query.QueryException. message: Failed to
> parse query [pccr\:sender_reference:(?)]; nested exception is
> org.apache.lucene.queryParser.ParseException: Lexical error at line 1, column
> 25. Encountered: "?" (63), after : ""
> The "?" should be escaped.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.nuxeo.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets