cancel
Showing results for 
Search instead for 
Did you mean: 

How to use the search webscript?

kingkong
Champ in-the-making
Champ in-the-making

Which parameters can be given to the alfresco/service/slingshot/search webscript?

I know about term=... and site=... and I am able to use them.

I know that there is also a parameter sort=... but I have no idea about how to fill it! Which sort options are possible?

Thanks a lot in advance!

Kind regards KingKong

10 REPLIES 10

mitchb
Champ in-the-making
Champ in-the-making

I ran into the same issue. The problem is the pipe character "|". You need to encode it as %7C in the url and it will work.

for example:  sort=cm:name%7Cfalse

I found this out by going to the faceted-search page in share and inspecting the query in the network tab. That will show you the proper way to use and encode all the parameters, since it uses the slingshot search webscript as well.

Hope that helps.

Mitch