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

Popular posts from this blog

php - trouble displaying mysqli database results in correct order -

depending on nth recurrence of job in control M -

sql server - Cannot query correctly (MSSQL - PHP - JSON) -