Example usage for org.apache.lucene.search BoostAttribute getBoost

List of usage examples for org.apache.lucene.search BoostAttribute getBoost

Introduction

In this page you can find the example usage for org.apache.lucene.search BoostAttribute getBoost.

Prototype

public float getBoost();

Source Link

Document

Retrieves the boost, default is 1.0f .

Usage

From source file:org.elasticsearch.action.termvectors.TermVectorsResponse.java

License:Apache License

private void buildScore(XContentBuilder builder, BoostAttribute boostAtt) throws IOException {
    if (hasScores) {
        builder.field(FieldStrings.SCORE, boostAtt.getBoost());
    }// w  ww .  ja  v  a 2 s.c o  m
}