protected GDataIndexWriter(Directory arg0, boolean arg1, org.apache.lucene.gdata.search.config.IndexSchema arg2)Creates and configures a new GdataIndexWriter
/*
* Use Schema Analyzer rather than service analyzer.
* Schema analyzer returns either the service analyzer or a per field analyzer if configured.
*/
super(arg0, (arg2 == null ? new StandardAnalyzer() : arg2.getSchemaAnalyzer()), arg1);
if (arg2 == null) {
/*
* if no schema throw exception - schema is mandatory for the index writer.
*/
try {
this.close();
} catch (IOException e) {
//
}
throw new IllegalArgumentException("configuration must not be null");
}
this.initialize(arg2);
|