November Happy Hour will be moved to Thursday December 5th.

Geolocation / Excerpt overrides for UnifiedSearch

Vote:
 

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

        [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.

Can anyone tell me what I'm not doing.

Many thanks for any/all help

 

 

 

#77146
Nov 11, 2013 17:35
Vote:
 

Sorry everone. I've found the problem almost immediately. I forgot the rebuild the index. Once rebuil tit works fine. Oops

#77147
Nov 11, 2013 17:59
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.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.