Using CMIS, how to query/get documents for a user/user-id? - cmis

Using CMIS, how to query/get documents for a user/user-id? CMIS supports query by object id, does it support query by user-id? Sample query if any will help a lot.
Thanks,
Jawa

Try:
SELECT * FROM cmis:document WHERE cmis:createdBy = 'user-id'

Related

Nested query on Dynamodb with nodejs

I am working on a project where i need to perform nested query over Dynamodb tables. Please let know if it is possible if yes then please provide a sample for id not in(select id from table) in node js
Not supported. Select your id`s first and only then use it...

How to impelement the update #Query with IN operator while using spring data cassandra?

Could anyone help please.
I need to know How to impelement the update #Query with IN operator while using spring data cassandra?
Because I want to use something like this:
#Query("UPDATE objects SET children = ?0 WHERE id IN (?...)")
Ofc if it's possible. Might be I should use native data stax template for this kind of query.
Thx in advance
I am not sure how to implement it, but it is not recommended to use IN in queries with Cassandra ( see this blog for example). It will actually be slower than iterating through the ids and and calling update separately for every id using the standard query, e.g.
#Query("UPDATE objects SET children = ?0 WHERE id = ?1")

IMobileServiceTable.ReadAsync(string query) syntax

Can anyone tell me where to find the syntax for the query string parameter for Windows Azure's IMobileServiceTable.ReadAsync(string query) ?
It's an ODATA query. Search google for "ODATA QUERY" for details. It's less work to use a Where method on the table and let LINQ construct the ODATA query internally.

Sharepoint CMIS connector returns documents from all libraries when using the CONTAINS predicate

I'm using the OPENCMIS library to connect Sharepoint's CMIS connector. After connecting to a specific Library(Repository in CMIS language), were trying to retrieve the list of documents from that specific library that met a criteria (ex: name = myTestDocument). It's works perfectly with the following query:
select * from document where cmis:name = 'myTestDocument'
This is ok, but since the criteria will be filled by a user, we switch to use the CONTAINS predicate to be able to search without having the complete name (ex: Only "Test" instead of "myTestDocument"). So the query looks more like this:
select * from document where contains('Test').
It returns the documents meeting the criteria in the library, but also documents from other libraries.
Does anybody have an idea on how to enforce search only in the connected library.
I had the same problem, and I resolved it using the IN_TREE() predicate function, as documented in the CMIS Documentation 1
The resulting query is:
select * from document where contains('Test') and IN_TREE(-1)
"-1" stand for the repository root ID (also in the CMIS Documentation)
Regards,
Jerome

Mysql-specific query in SubSonic

I'd like to add a query to my SubSonic DAL that uses the MySQL fulltext search construct "WHERE MATCH (columnlist) AGAINST (searchterm)", but can't find an equivalent in SubSonic.
Is there a way of using Subsonic to execute a "literal" query - i.e. it just queries with the exact MySQl code I feed it?
Alternatively, could I implement a subclass of SubSonic.Where to run the fulltext search? If so, how would I go about this?
I'm using SubSonic 2.x. Any ideas welcome. Thanks.
ddoctor
You can use CodingHorror to run any SQL you like.

Resources