Page 1 of 1

Multiple Property Group - search error

PostPosted:Thu Apr 09, 2009 2:50 pm
by ribizli
Dear Support,

it seems I\'ve found an other strange behavior in OpenKM.

I created a multiple property called okp:test.abc=4,A,B,C,D,E,F,G. I attached A, B and C to a documents.
After that in the serch tab I was searching for A, but the document was not found. But this wasn\'t the case with B and C.

I\'ve made some code review, and found, that searching works in background with XPath queries.

So my queries look like the followings:
Code: Select all
/jcr:root/okm:root//element(*, okg:test)[jcr:contains(@okp:test.abc, \'A\')]
/jcr:root/okm:root//element(*, okg:test)[jcr:contains(@okp:test.abc, \'B\')]
/jcr:root/okm:root//element(*, okg:test)[jcr:contains(@okp:test.abc, \'C\')]
The first one doesn\'t deliver any result.

If I remove the contains keyword, I get my result for A too:
Code: Select all
/jcr:root/okm:root//element(*, okg:test)[@okp:test.abc=\'A\']
I\'ve tried it with a clean downloaded instance.

Can it be a Jackrabbit BUG? [file name=groups-89c17b1c702821306be3b45ecf64e78a.zip size=1047]http://www.openkm.com/images/fbfiles/fi ... 64e78a.zip[/file]

Re:Multiple Property Group - search error

PostPosted:Mon Apr 27, 2009 7:33 am
by ribizli
Dear Support,

have you been able to reproduce the problem?

Re:Multiple Property Group - search error

PostPosted:Wed Apr 29, 2009 10:40 am
by jllort
I\'ll testing it.