/** * 获取销售价 * * @return 销售价 */ @JsonProperty @Field(store = Store.YES, index = Index.UN_TOKENIZED) @NumericField @FieldBridge(impl = BigDecimalNumericFieldBridge.class) @NotNull @Min(0) @Digits(integer = 12, fraction = 3) @Column(nullable = false, precision = 21, scale = 6) public BigDecimal getPrice() { return price; }
/** * 获取评分 * * @return 评分 */ @Field(store = Store.YES, index = Index.UN_TOKENIZED) @NumericField @Column(nullable = false, precision = 12, scale = 6) public Float getScore() { return score; }
@NumericFields({ @NumericField(forField="isbn") }) @Field(store = Store.YES, index = Index.YES, indexNullAs = "-1") public Integer getIsbn() { return isbn; }