cancel
Showing results for 
Search instead for 
Did you mean: 

how can I save query search?

ersecchio
Champ in-the-making
Champ in-the-making
Hi,

I would like to save a query of search in the same way of "Advanced Search" of alfresco explorer.
Alfresco explorer save the search in an xml file of this type:


<?xml version="1.0" encoding="UTF-8"?>
<search>
  <text><![CDATA[alfresco]]></text>
  <mode>0</mode>
  <categories/>
  <content-type>{http://www.alfresco.org/model/content/1.0}content</content-type>
  <folder-type>{http://www.alfresco.org/model/content/1.0}folder</folder-type>
  <attributes/>
  <ranges/>
  <fixed-values/>
  <query><![CDATA[( TYPE:"{http://www.alfresco.org/model/content/1.0}content"  AND (@\{http\://www.alfresco.org/model/content/1.0\}name:'alfresco"  TEXT:"alfresco")) ( TYPE:"{http://www.alfresco.org/model/content/1.0}folder"  AND (@\{http\://www.alfresco.org/model/content/1.0\}name:'alfresco" ))]]></query>
</search>

I tried to use the REST API: http://wiki.alfresco.com/wiki/Alfresco_REST_API_Proposal#Alfresco_Saved_Search_2,
in this way: GET " http://localhost:8080/alfresco/service/api/search/saved "  but I always get a 404 error!

Smiley Sad
tnx
1 REPLY 1

mikeh
Star Contributor
Star Contributor
I guess you missed the paragraph at the top of that article (and the article title itself!)
NOTE:
This document presents ideas & thoughts for an Alfresco RESTful Web Services API for Content Management.
The content herein does not necessarily reflect current Alfresco product vision or development plan.

Mike