Quantcast
Channel: Developer to developer
Viewing all articles
Browse latest Browse all 9076

Can't search using the Content Search API. Does an instance of IContentApiSearchProvider exists, or do I write my own?

$
0
0

I have installed the Content Delivery API in my solution, and everytime I generate a search request in Postman, I get an error saying:

"ExceptionMessage": "An error occurred when trying to create a controller of type 'ContentApiSearchController'. Make sure that the controller has a parameterless public constructor."

And this is due to the fact that no instance of IContentApiSearchProvider has been added to the dependency resolver.

According to the Episerver documentation, the Content Search API makes use of Episerver Find to query content, and I have Episerver Find installed in my solution. Is there anything, that I might have missed here?


Viewing all articles
Browse latest Browse all 9076

Trending Articles