How to perform Geo Search

Nov 6, 2009 at 8:26 AM
Edited Nov 6, 2009 at 8:27 AM

Hi All,

How to perform GeoSearch in SharePoint with ESP Web parts.

As per my understanding we need to pass the parameter as qtf_geosearch:center=(59.56,10.41)

Please share th exact code to perform the same.

Regards,

Arun

 

 

 

 

Nov 6, 2009 at 8:32 AM

Yes. You are correct.

You can do this by modifying Query Template of Default ESP Web Parts.

Nov 6, 2009 at 8:48 AM
Edited Nov 6, 2009 at 10:56 AM

Hi,

Thanks for a quick reply,

 Here is what i am trying to do in ESPSearchConfig.cs file under ConfigureSearch

SearchRequest.SetCustomParameterByName(

"qtf_geosearch:filterbox", "(59.5,10.4);(61.5,12.4)");

 Please check and let me know if it is right.

Thanks in advance.

Regards,

Arun

 

 

Nov 6, 2009 at 12:55 PM

Arun,

I'm not FAST Expert, What I know is you can update default FAST Query in  ConfigureSearch() method. But I'm not sure wheter SearchRequest.SetCustomParameterByName will support parameters for Geo-Search.

What I can suggest is, when though FAST Extranet and get correct FQL for that, then check with your SFE and update your FQL with it.

 

Regards,

Thiwanka