var query = SolrQueryByDistance(fieldname, loc, (int)Math.Ceiling(distance), CalculationAccuracy.BoundingBox);
string point = latitude + "," + longitude;
QueryOptions queryOptions = new QueryOptions
{
OrderBy = new[] {new SortOrder("geodist()", Order.ASC) , new SortOrder(QuerystringUtil.KEY_IS_PREFERRED, Order.DESC)},
Fields = new[] {"*", "distance: geodist()"},
ExtraParams = new Dictionary<string, string> {
{"sfield","agency_loc"},
{"pt", point}
}
};
This does not return the results for me.I have field named distance in the results object. I need it to store the geodist(). How can i do that using solrnet