List of usage examples for org.apache.solr.common.util NamedList getBooleanArg
public Boolean getBooleanArg(final String name)
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; }