@Document(indexName = "opportunity_data", type = "opportunities", createIndex = false)
@Setting(settingPath = "/search/settings.json")
@Data
@Accessors(chain = true)
@JsonIgnoreProperties(value = {"id"}, allowGetters = true, allowSetters = false)
public class OpportunityVo extends AbstractGenericVo<Opportunity> {
@Id
@Field(type = FieldType.Long)
private Long opportunityId;
@Field(type = FieldType.Long)
private Long prospectId;
@Field(type = FieldType.Text)
private String prospectName;
}
the opportunityId above is mapped to keyword other than the long type. Anyone knows how to map the opportunityId to long type when @Id annotated at the same time since I'd like to do stats metrics aggregation on this property?