Vulnerability in EPiServer.Forms
I am trying to use projections to minimize the amount of data that are returned from the Find server but I got this error:
Error setting value to 'Category' on 'ProductPage'
I am using code that looks like this:
var searchQuery = _searchClient.Search(Language.Swedish)
.Filter(f => f.Cities.In(locations, true));
searchQuery.Select(s => new
Title = s.Title,
LinkUrl = s.LinkUrl
var result = searchQuery.GetResult();
Anyone got a clue on how it could be like this?
Your example isn't cahined. Either you need to do:searchQuery = searchQuery.Select(...)or continue:.Filter(...).Select(...)/Henrik
Thanks, I was blind......
of course it should be like that, thanks for seeing what I missed... ;-)