AnsweredAssumed Answered

Restfull api and searching

Question asked by albertogarcía on Jul 4, 2014
Latest reply on Jul 15, 2014 by albertogarcía
Hello,

I would like to know how to use the search functions to search documents mixing content and metadata without using CMIS (unsuported for 3.1 version)

I have found how to look for the doc. inner content
http://<host>:<port>/alfresco/service/api/search/keyword.atom.html?q=*asd*

but I'd like to find also documents of the created type doc:doc and with custom metadata, such as doc:number=8

With CMIS it would be:
http://<host>:<port>/alfresco/service/cmis/query?q=select%20doc:number,doc:description,cmis:objectId%20from%20doc:doc%20where%20doc:number=8

I have checked the alfresco documentation and I think with the function I can do it, but I can't find any proper example
http://<host>:<port>/alfresco/service/api/search/keyword?q={searchTerms}

Can I configure the {searchTerms} to look for metadata and content at the same time? If so, how? If not, how can I do it? Is there any other way?

Thanks in advance

Outcomes