spring-data-jest
spring-data-jest copied to clipboard
com.github.vanroy.springdata.jest.exception.JestElasticsearchException getting 400 parsing exception
Cannot execute jest action , response code : 400 , error : {"root_cause":[{"type":"parse_exception","reason":"field must be either [lat], [lon] or [geohash]"}],"type":"mapper_parsing_exception","reason":"failed to parse","caused_by":{"type":"parse_exception","reason":"field must be either [lat], [lon] or [geohash]"}} , message : null
here is my model
@Document(indexName = "lxi") public class Lxi implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@Column(name = "name")
private String name;
@OneToOne
@JoinColumn(unique = true)
@GeoPointField
private LocationMap locationMap;
and @Document(indexName = "locationmap") public class LocationMap implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@Column(name = "lat")
private Double lat;
@Column(name = "lon")
private Double lon;
Couldn't find any documentations Thanks in advance.