I have an object that I want to add to my Solr server that I've annotated using solrj's @Field annotation, but I can't find any documentation about what Java data type to use for Solr's location type. Here is my Bean I want to add:
@Field
private UUID id;
@Field
LatLonType location; // what should the Java data type of this field be???
@Field
private EventType eventType;
@Field
private int maxCapacity;
@Field
private int minCapacity;
@Field
private double price;
@Field
private Date startDate;
@Field
private Date endDate;
Any ideas?
The appropriate type on Java side is a simple String
with both the lat and lon separated by a comma, e.g. "1.2,3.4"
.