Example usage for org.apache.solr.search FunctionQParser argWasQuoted

List of usage examples for org.apache.solr.search FunctionQParser argWasQuoted

Introduction

In this page you can find the example usage for org.apache.solr.search FunctionQParser argWasQuoted.

Prototype

boolean argWasQuoted

To view the source code for org.apache.solr.search FunctionQParser argWasQuoted.

Click Source Link

Usage

From source file:org.vootoo.search.function.RandomValueSourceParser.java

License:Apache License

protected long parseLong(FunctionQParser fp) throws SyntaxError {
    String str = fp.parseArg();/*www  . ja va2  s  .c om*/
    if (fp.argWasQuoted())
        throw new SyntaxError("Expected double instead of quoted string:" + str);
    long value = Long.parseLong(str);
    return value;
}