AnsweredAssumed Answered

Call the system Searh Service.

Question asked by amantay on Mar 13, 2012
Latest reply on Jul 15, 2014 by sameer1sharma
Hi friends,
I found this URL through FireBug from Alfresco advanced search page.
http://localhost:8080/alfresco/wcservice/api/search/keyword/description.xml
Then, put it in my browser, response was interesting description.xml file. Which is as follows:

<OpenSearchDescription>
<ShortName>Alfresco Keyword Search</ShortName>
<LongName>Alfresco Community Keyword Search 3.4.0 (c 3335)</LongName>
<Description>Search Alfresco "company home" using keywords</Description>
<Url type="text/html" template="http://localhost:8080/alfresco/wcservice/api/search/keyword?q={searchTerms}&p={startPage?}&c={count?}&l={language?}&guest={alf:guest?}'/>
<Url type="application/atom+xml" template="http://localhost:8080/alfresco/wcservice/api/search/keyword.atom?q={searchTerms}&p={startPage?}&c={count?}&l={language?}&guest={alf:guest?}'/>
<Url type="application/rss+xml" template="http://localhost:8080/alfresco/wcservice/api/search/keyword.rss?q={searchTerms}&p={startPage?}&c={count?}&l={language?}&guest={alf:guest?}'/>

<Image height="16" width="16" type="image/x-icon">
http://localhost:8080/alfresco/images/logo/AlfrescoLogo16.ico
</Image>
</OpenSearchDescription>
Once again, I continue to experiment, get from description.xml this url:
http://localhost:8080/alfresco/wcservice/api/search/keyword?q={searchTerms}&p={startPage?}&c={count?}&l={language?}&guest={alf:guest?}
And put it in browser with parameters like:
{searchTerms} = alfresco (you can put any word)
{startPage?} = 1 (this page number)
{count?} = 10 (count of result items in one page)
{alf:guest?} = (it is your ticket)
http://localhost:8080/alfresco/wcservice/api/search/keyword?q=alfresco&p=1&c=10&l=en

Result will be like, if you enter "alfresco" word in you alfresco search. But I still do not understand, can i input in {searchTerms}  parameters like date, category, content type and so on?

Outcomes