Adding an attachment field results in following error

I have a class
public class Expense {
@Id
@Field(type = FieldType.String, index = FieldIndex.not_analyzed)
private String expense_id;
@Field(type = FieldType.String, index = FieldIndex.not_analyzed)
private String title;
@Field( type = FieldType.String, index = FieldIndex.not_analyzed)
private String spender_id;
@Field(type = FieldType.String, index = FieldIndex.not_analyzed)
private String approver_id;
@Field(type = FieldType.String, index = FieldIndex.not_analyzed)
private String datetime; //yyy-MM-dd HH:mm:ss
@Field( type = FieldType.String, index = FieldIndex.not_analyzed)
private List managers_chain;
private String description;
@Field(type = FieldType.String, index = FieldIndex.not_analyzed)
private String category;
private Double amount;
@JsonSerialize
@Field(type = FieldType.Object)
private Source source;
@Field(type = FieldType.String, index = FieldIndex.not_analyzed)
private String status;
@Field(type = FieldType.Attachment)
private Attachment proof;

public String getStatus() {
    return status;
}

public Attachment getProof() {
    return proof;
}

public void setProof(Attachment proof) {
    this.proof = proof;
}

}

When I run the spring boot app, it results in following error. How do I fix it?
MapperParsingException[Mapping definition for [proof] has unsupported parameters: [store : false]]
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599) ~[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]

Hey,

what framework are you using here? Is this spring data elasticsearch? If so, does that version support your elasticsearch version? It would be great if you can provide either more information of which requests your libraries are sending or if you maybe create an issue in that corresponding library.

--Alex

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.