Example usage for org.apache.lucene.queries.function ValueSource description

List of usage examples for org.apache.lucene.queries.function ValueSource description

Introduction

In this page you can find the example usage for org.apache.lucene.queries.function ValueSource description.

Prototype

public abstract String description();

Source Link

Document

description of field, used in explain()

Usage

From source file:org.vootoo.search.CollectorFilterablePlugin.java

License:Apache License

public void verifyValueStr(String valueStr, ValueSource valueSource) throws SyntaxError {
    if (valueStr == null) {
        throw new SyntaxError("cf=" + getName() + " '" + valueSource.description() + "' value is null");
    }//from w  ww.java2  s  .  c o  m
    valueStr = valueStr.trim();
    if (valueStr.length() < 1) {
        throw new SyntaxError("cf=" + getName() + " '" + valueSource.description() + "' value is blank");
    }
}