AnsweredAssumed Answered

cmis CONTAINS with * wildcard and trailing space

Question asked by pluttero on Mar 20, 2014
Latest reply on Mar 21, 2014 by kaynezhang
Dear All,
I'm experiencing a strange behaviour with this cmis query:

select * from cp:myAspect  where CONTAINS  ('cp:pTitle:foobar*')

Basically I want everything matching a Title containing 'foobar' then anything. The above query works as expected.

If then I issue:

select * from cp:metadatiPratica  where CONTAINS  ('cp:pTitolo:allegat *')

the query is the same as the first one, but with a trailing space. In this case I get the following error:

"maxClauseCount is set to 10000"

I observe the same behaviour with chemistry workbench 0.9.0 and  via java api.

Now, having a space followed by *, is probably not correct, because CONTAINS is already tokenizing (right?), but I would not expect this error.