Hi,
Libraries hava installed in the application:
Imlementation:
internal class ApplicationSearchClient : ISearchClient { private IClient Client { get; set; } public ApplicationSearchClient(IClient client) { Client = client; } public SearchResponse Search(Core.Models.SearchRequest request) { var articles = Client.Search().For(request.Query).GetResult(); return new SearchResponse { Data = new { epiServerContent = articles.Count() } }; } }
Error: "Error setting value to 'Category' on 'Site.Models.Pages.ArticlePage'."
Internal error: "Property 'PageCategory' does not exist, can only assign values to existing properties"
How can we fix this?
You can use GetPagesResult() instead of GetResult(), or use projections.
Hi,
Libraries hava installed in the application:
Imlementation:
Error: "Error setting value to 'Category' on 'Site.Models.Pages.ArticlePage'."
Internal error: "Property 'PageCategory' does not exist, can only assign values to existing properties"
How can we fix this?