Example usage for org.apache.solr.common.util NamedList getBooleanArg

List of usage examples for org.apache.solr.common.util NamedList getBooleanArg

Introduction

In this page you can find the example usage for org.apache.solr.common.util NamedList getBooleanArg.

Prototype

public Boolean getBooleanArg(final String name) 

Source Link

Document

Used for getting a boolean argument from a NamedList object.

Usage

From source file:com.sindicetech.siren.solr.qparser.SirenQParserPlugin.java

License:Open Source License

@Override
public void init(final NamedList args) {
    qnamesFile = (String) args.get(SirenParams.QNAMES);

    if (args.get(SirenParams.ALLOW_LEADING_WILDCARD) != null) {
        allowLeadingWildcard = args.getBooleanArg(SirenParams.ALLOW_LEADING_WILDCARD);
    }/*from ww  w.  java2s  .  c om*/
}

From source file:org.apache.lucene.analysis.ko.managed.ManagedKoreanDictionary.java

License:Apache License

public boolean getEmptyWords(NamedList<?> initArgs) {
    Boolean emptyWords = initArgs.getBooleanArg(EMPTYWORDS_ARG);
    // ignoreCase = false by default
    return null == emptyWords ? false : emptyWords;
}