Spring Data Elasticsearch use String as id -
when using spring data elasticsearch this:
@document(indexname = "app_rec_by_content_1", type = "user_rec") public class userrec { @id public string id; public int userid; public int iid; public int modelid; public date timestamp; }
i got exception:
exception in thread "pool-3-thread-1" mapperparsingexception[failed parse [id]]; nested: numberformatexception[for input string: "1-245"];
dose spring data elasticsearch support string field @id?
Comments
Post a Comment