Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

com.github.vanroy.springdata.jest.exception.JestElasticsearchException getting 400 parsing exception #86

Open
rafeek-k-s opened this issue Sep 27, 2018 · 0 comments

Comments

@rafeek-k-s
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant