cancel
Showing results for 
Search instead for 
Did you mean: 

CMIS to search into a document

albertogarcía
Champ in-the-making
Champ in-the-making
Hi,

I am using CMIS to get some info about some alfresco documents and nodes

The fact is tha I'd like to know how to ask for the document content, i.e. I have a .pdf document with a text such as "example of result for the query" and another document with the name or descritption "example of result for the query"

If I make q query

select * from cmis:document where contains('cmis:name:example of')

I get the second one.

With another services in the api:
/alfresco/service/api/search/keyword.atom?q=example of

I get all the documents

How can I get JUST the first one? How can I make a query asking for the content of the files?

Thanks in advance.
1 REPLY 1

kaynezhang
World-Class Innovator
World-Class Innovator



Alfresco support several query langugages,if you want to use cmis language to do full text search ,you can write it like this

select * from cmis:document where contains('fox')
or
select * from cmis:document where contains('TEXT:fox') //TEXT field is a shortcut for searching all properties of type content and also is default field
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.