AnsweredAssumed Answered

Returning search context through API

Question asked by tf_bds on Mar 23, 2017
Latest reply on Apr 27, 2017 by tf_bds



I'm trying to use the REST API to run a search query on the files in Alfresco. I am able to replicate the results from the online interface, but would like to recieve the search term in it's context, as can be seen in the web interface results.


For example, when I search for "MacDougall" in the web interface, I get:

And using the API I submit:{startPage?}&c={count?}&l={language?} 


And get back:


<guid isPermaLink="false">e8758538-7b3a-47fa-8941-d812c01c1b0d</guid>


As you can see, the correct result is returned, but is missing the keyword MacDougall in it's context as per the browser search.


Is there any way in which the API can return the string "It started out as just another Saturday. April 26, 1986. John R. MacDougall, 25, spent the day..."  along with the search result?


Many thanks