Example usage for org.apache.lucene.index FieldInvertState getName

List of usage examples for org.apache.lucene.index FieldInvertState getName

Introduction

In this page you can find the example usage for org.apache.lucene.index FieldInvertState getName.

Prototype

public String getName() 

Source Link

Document

Return the field's name

Usage

From source file:org.elasticsearch.index.similarity.ClosedSimilarity.java

@Override
public long computeNorm(FieldInvertState state) {
    final int numTerms = state.getLength();
    log.info("Calculating term normalization. Term: " + state.getName() + " Value: " + numTerms);
    return encodeNormValue(state.getBoost(), numTerms);
}