Using Smart Search in angular Or .Net Core

santosh maroju asked on April 17, 2019 13:49

I am trying to build angular app and .net Core app and integrate Kentico Content into my application using Kentico Rest Api. I wonder If Kentico provides Api for Smart Search feature to get results of the search. I searched around and could not find any relevant discussions happened in any forum. It would be thankful if anyone found an Api that gives Smart search feature.

Like this framed url 'http://localhost/Kentico/rest/content/site/currentsite/en-us/document/Home?format=json&hash=c3f32f17f32cba11c4b602c990cd8bebcd044d4e2496f6a5b8b3357007eadd9a' gives content of a document, I am expecting something like http://localhost/Kentico/rest/searchtext=article&searchmode=anyword would give a list of relevent pages that kentico gives, may be in a json or xml format.

Thanks in advance!

Correct Answer

David te Kloese answered on April 18, 2019 11:18

by default the REST api doesn't allow you to do search calls.

I suggest creating your own custom generic handler or service (.ashx) so you can set it up to your needs, in which you can just use the Kentico API for the search calls.

1 votesVote for this answer Unmark Correct answer

   Please, sign in to be able to submit a new answer.