| org.apache.solr.update.SolrIndexWriter
SolrIndexWriter | public class SolrIndexWriter extends IndexWriter (Code) | | An IndexWriter that is configured via Solr config mechanisms.
author: yonik version: $Id: SolrIndexWriter.java 533507 2007-04-29 14:05:21Z yonik $ since: solr 0.9 |
Method Summary | |
public void | close() use DocumentBuilder now...
private final void addField(Document doc, String name, String val) {
SchemaField ftype = schema.getField(name);
// we don't check for a null val ourselves because a solr.FieldType
// might actually want to map it to something. | protected void | finalize() |
close | public void close() throws IOException(Code) | | use DocumentBuilder now...
private final void addField(Document doc, String name, String val) {
SchemaField ftype = schema.getField(name);
// we don't check for a null val ourselves because a solr.FieldType
// might actually want to map it to something. If createField()
// returns null, then we don't store the field.
Field field = ftype.createField(val, boost);
if (field != null) doc.add(field);
}
public void addRecord(String[] fieldNames, String[] fieldValues) throws IOException {
Document doc = new Document();
for (int i=0; i |
finalize | protected void finalize()(Code) | | |
|
|