Example usage for org.apache.lucene.queries.function.valuesource ConstNumberSource subclass-usage

List of usage examples for org.apache.lucene.queries.function.valuesource ConstNumberSource subclass-usage

Introduction

In this page you can find the example usage for org.apache.lucene.queries.function.valuesource ConstNumberSource subclass-usage.

Usage

From source file org.apache.solr.analytics.util.valuesource.ConstDoubleSource.java

/**
 * <code>ConstDoubleSource</code> returns a constant double for all documents
 */
public class ConstDoubleSource extends ConstNumberSource {
    public final static String NAME = AnalyticsParams.CONSTANT_NUMBER;
    final double constant;

From source file org.apache.solr.search.ValueSourceParser.java

class LongConstValueSource extends ConstNumberSource {
    final long constant;
    final double dv;
    final float fv;

    public LongConstValueSource(long constant) {