I am using spring-data-solr 2.0.5.RELEASE with solr server 5.5.3
I have a field defined as follows
public class Org {
...
@Indexed(name = "geoLocation", type = "location")
private Point geoLocation;
...
}
When I run a test that uses the class, this field is created in Solr as "Field-Type:org.apache.solr.schema.StrField"
I have tried setting type="point" as well as not setting it. In all cases, the field gets created as StrField in Solr.
Does spring-data-solr create Solr schema based on the datatype of the Java field (in this case a Point field) or using the type attribute in the @Indexed annotation?
If yes, what is missed in this example?