i have this field en my solr schema.xml
<field name="geocode"
type="location"
indexed="true"
stored="true"
multiValued="false" />
i wonder, what type of object i need in my c# class?
im trying with that, but solr throws an error.
[SolrField("geocode")]
public System.Drawing.PointF GeoCode { get; set; }
SEVERE: java.lang.NumberFormatException: For input string: "{X=0"
at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source)
at java.lang.Double.parseDouble(Unknown Source)
at org.apache.lucene.spatial.DistanceUtils.parsePointDouble(DistanceUtil
s.java:410)
Can anyone help?
As of October 2012, SolrNet comes with a built in Location class for supporting GeoSpatial searching. I would recommend getting the latest version from source - SolrNet on GitHub or from the nightly builds and using this class.
For queries, SolrNet added SolrQueryByDistance
for creating geofilt or bbox queries. See SolrNet - Querying for more detials.