I'm trying to get the excerpt and gelocation (and section just to test) overridden for particular unified search results in a page type. So far I have put the following code into the page data object
[Ignore]
public virtual GeoLocation SearchGeoLocation
{
get
{
return Latitude.HasValue && Longitude.HasValue ? new GeoLocation(Latitude.Value, Longitude.Value) : null;
}
}
[Ignore]
public virtual string SearchText { get { return "TB Test 1"; } }
[Ignore]
public virtual string SearchSection { get { return "TB Test 2"; } }
But when i do a search and inspect the results I don't see the results coming in. The excerpt and section still show their default behaviour and geolocation isn't coming in at all.
error This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
Hi all
I'm trying to get the excerpt and gelocation (and section just to test) overridden for particular unified search results in a page type. So far I have put the following code into the page data object
But when i do a search and inspect the results I don't see the results coming in. The excerpt and section still show their default behaviour and geolocation isn't coming in at all.
Can anyone tell me what I'm not doing.
Many thanks for any/all help