cancel
Showing results for 
Search instead for 
Did you mean: 

how to search inside files with CMIS

pcamazon
Champ in-the-making
Champ in-the-making
Hello everybody!

I have to confess this is my first time working with Alfresco and I'm not sure about what I'm doing but I'll try to explain:

I'm using <strong>Alfresco 5 and Apache Chemistry</strong> library to implement a client.
I've based my development on <a href="https://code.google.com/p/alfresco-api-java-examples/">alfresco-api-java-examples</a> of <a href="https://forums.alfresco.com/users/jpotts"><strong>jeffpotts</strong></a>.

By using atom 1.1 binding, I've achieved to create folders and documents, modify properties, get content and versions… not bad 😄

Next challenge is to perform a based-on-content search, just like the Alfresco gui tool provides.
The following example shows the resultant URL of a search by the "2015" string:
http://myAlfrescoSrv:8088/share/page/dp/ws/faceted-search#searchTerm=2015&scope=repo&sortField=Relev...


It returns those stored documents that contains "2015" inside.
Is there any way to do the same within apache chemistry library?

I would be thankful if someone could give me a hand. Any reference would be very apreciated
3 REPLIES 3

pcamazon
Champ in-the-making
Champ in-the-making
I response to myself:

I'ved had the key in front on me all the time. I was doing a big mistake at writint the CMIS Query.

This examples (also from jpotts) gave me the clue:
<a href="https://github.com/jpotts/alfresco-developer-series/blob/master/content/content-tutorial-cmis/src/ma...">SomeCoCMISDataQueries.java</a>

Here's my query:

"SELECT D.cmis:name, D.cmis:objectId FROM cmis:document as D WHERE CONTAINS ('2015')"

adrianodib
Champ on-the-rise
Champ on-the-rise

Hi there!

Could you send me an example how to create folders and documents, modify properties, get content and versions using atom 1.1 binding and JAVA language? 

Please help me

Best regards

adrianodib@gmail.com