How to get case insensitive cmis:folder search query

女生的网名这么多〃 提交于 2020-01-06 18:47:50

问题


stmt = session.createQueryStatement("SELECT * FROM cmis:folder WHERE IN_TREE(?) and cmis:name=?"); stmt.setString(1,'sites/test/documentLibrary'); stmt.setString(2,'Test');

I got result with exact folder name(Test) case senstive, but If i gave foldername test or TEST result not found.

Could you please help me on case insenstive folder search.


回答1:


The CMIS QL does not support case insensitive queries because many repositories can't provide it.

Depending on the repository and the repository setup, a LIKE query might be case insensitive.

Btw. IN_TREE takes a folder ID, not a folder path.



来源:https://stackoverflow.com/questions/42248608/how-to-get-case-insensitive-cmisfolder-search-query

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!