AnsweredAssumed Answered

how can I save query search?

Question asked by ersecchio on May 2, 2011
Latest reply on May 2, 2011 by mikeh
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!

:(
tnx

Outcomes