当我使用Spring Data Elasticsearch时:
@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;
}
我有一个例外:
线程中的异常" pool-3-thread-1" MapperParsingException [无法解析[id]];嵌套:NumberFormatException [对于输入字符串:" 1-245"];
Dose Spring Data Elasticsearch支持String字段为@id?