Hi,
I have a question about spacial possibilities. I can get scored results by a given spatial radius. That means that someone that is closer to my given geo-location will have an higher rank in the result list. I have however other searchterm conditions in my query too and given some of them a boost. Is it possible to boost the spatial search too and how do I do this in C#? Can I also return the distances from the given location?
I can query for a given spatial radius.
eg. query = query.WithinRadiusOf(spatialFieldname, distance, (double)lat, (double)lon);
When I declare this in the index
public class MyIndex : AbstractIndexCreationTask<ResultClass>
{
public MyIndex()
{
Map = ResultClass => from result in ResultClass
select new
{
Id ,
Coordinates = SpatialGenerate("Coordinates", Convert.ToDouble(Latitude), Convert.ToDouble(Longitude) )
};
But how can I boost?
How can I report the user the distances? For example I wanna know the distance of the nearest supermarkets near my house.
Thanks in advance.