You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by Sebastian Danninger <se...@googlemail.com> on 2011/04/26 12:58:31 UTC

CMIS Query CONTAINS

Dear all,

when using a query with the CONTAINS clause that got more then 0
results (Looking for content of the pdf/txt/... I don't get any
results but looking for the filename I do) I get an error (repository
is Alfresco 3.4d) all other queries are working as intended.

ItemIterable<QueryResult> results1 = s.query("SELECT * FROM
tie:document WHERE CONTAINS('" + searchquery + "')", false);

Is there posibly an error in processing CONTAINS queries?

best regards

Sebastian

Re: CMIS Query CONTAINS

Posted by Florian Müller <fl...@alfresco.com>.
Hi Sebastian,

The query syntax is correct. The content of the searchquery variable might be problem. 
Please move the discussion to the Alfresco CMIS forum [1]. It's propbaly not related to OpenCMIS.


Thanks,

Florian


[1] http://forums.alfresco.com/en/viewforum.php?f=45


On 26/04/2011 11:58, Sebastian Danninger wrote:
> Dear all,
> 
> when using a query with the CONTAINS clause that got more then 0
> results (Looking for content of the pdf/txt/... I don't get any
> results but looking for the filename I do) I get an error (repository
> is Alfresco 3.4d) all other queries are working as intended.
> 
> ItemIterable<QueryResult>  results1 = s.query("SELECT * FROM
> tie:document WHERE CONTAINS('" + searchquery + "')", false);
> 
> Is there posibly an error in processing CONTAINS queries?
> 
> best regards
> 
> Sebastian