throw new IllegalArgumentException("The requestContext contains no LuceneConfig.");
} else if (this.luceneConfig.getIndexLocation().length() == 0) {
throw new IllegalArgumentException("The LuceneConfig indexLocation is empty.");
}
StringAttributeMap params = requestContext.getCatalogConfiguration().getParameters();
String param = Val.chkStr(params.getValue("lucene.useSingleSearcher"));
this.useSingleSearcher = param.equalsIgnoreCase("true");
param = Val.chkStr(params.getValue("lucene.useSingleWriter"));
this.useSingleWriter = param.equalsIgnoreCase("true");
param = Val.chkStr(params.getValue("lucene.useLocalWriter"));
this.useLocalWriter = !param.equalsIgnoreCase("false");
param = Val.chkStr(params.getValue("lucene.useRemoteWriter"));
this.useRemoteWriter = param.equalsIgnoreCase("true");
this.remoteWriterUrl = Val.chkStr(params.getValue("lucene.remoteWriterUrl"));
// check for a use remote writer override
Boolean bUseRemoteWriter = (Boolean)requestContext.getObjectMap().get("lucene.useRemoteWriter");
if (bUseRemoteWriter != null) {