Java 类org.hibernate.search.annotations.Boost 实例源码

项目:sdcct    文件:SdcctResourceImpl.java   
@Column(name = DbColumnNames.CONTENT, nullable = false)
@Fields({ @Field(analyzer = @Analyzer(definition = DbAnalyzerNames.EDGE_NGRAM), boost = @Boost(0.75F), name = DbFieldNames.CONTENT_EDGE_NGRAM),
    @Field(analyzer = @Analyzer(definition = DbAnalyzerNames.LOWERCASE), name = DbFieldNames.CONTENT_LOWERCASE),
    @Field(analyzer = @Analyzer(definition = DbAnalyzerNames.NGRAM), boost = @Boost(0.5F), name = DbFieldNames.CONTENT_NGRAM),
    @Field(analyzer = @Analyzer(definition = DbAnalyzerNames.PHONETIC), boost = @Boost(0.25F), name = DbFieldNames.CONTENT_PHONETIC) })
@Lob
@Override
public String getContent() {
    return this.content;
}
项目:sdcct    文件:SdcctResourceImpl.java   
@Column(name = DbColumnNames.TEXT)
@Fields({ @Field(analyzer = @Analyzer(definition = DbAnalyzerNames.EDGE_NGRAM), boost = @Boost(0.75F), name = DbFieldNames.TEXT_EDGE_NGRAM),
    @Field(analyzer = @Analyzer(definition = DbAnalyzerNames.LOWERCASE), name = DbFieldNames.TEXT_LOWERCASE),
    @Field(analyzer = @Analyzer(definition = DbAnalyzerNames.NGRAM), boost = @Boost(0.5F), name = DbFieldNames.TEXT_NGRAM),
    @Field(analyzer = @Analyzer(definition = DbAnalyzerNames.PHONETIC), boost = @Boost(0.25F), name = DbFieldNames.TEXT_PHONETIC) })
@Lob
@Nullable
@Override
public String getText() {
    return this.text;
}
项目:play    文件:Example.java   
@Field(boost = @Boost(value = 2.0F))
public String getLabel() {
    return label;
}
项目:play    文件:Example.java   
@Field(boost = @Boost(value = 3.0F))
public String getTags() {
    return tags;
}
项目:play    文件:Example.java   
@Field(boost = @Boost(value = 0.5F))
public String getSummary() {
    return summary;
}