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

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -