public class SolrIndexWriter extends Object implements IndexWriter
Modifier and Type | Field and Description |
---|---|
protected static long |
documentCount |
static org.slf4j.Logger |
LOG |
X_POINT_ID
Constructor and Description |
---|
SolrIndexWriter() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
commit() |
void |
delete(String key) |
String |
describe()
Returns a String describing the IndexWriter instance and the specific
parameters it can take
|
Configuration |
getConf() |
static IOException |
makeIOException(org.apache.solr.client.solrj.SolrServerException e) |
void |
open(Configuration conf) |
void |
setConf(Configuration conf) |
void |
update(NutchDocument doc) |
void |
write(NutchDocument doc) |
public static final org.slf4j.Logger LOG
protected static long documentCount
public void open(Configuration conf) throws IOException
open
in interface IndexWriter
IOException
public void write(NutchDocument doc) throws IOException
write
in interface IndexWriter
IOException
public void close() throws IOException
close
in interface IndexWriter
IOException
public Configuration getConf()
getConf
in interface Configurable
public void setConf(Configuration conf)
setConf
in interface Configurable
public void delete(String key) throws IOException
delete
in interface IndexWriter
IOException
public void update(NutchDocument doc) throws IOException
update
in interface IndexWriter
IOException
public void commit() throws IOException
commit
in interface IndexWriter
IOException
public static IOException makeIOException(org.apache.solr.client.solrj.SolrServerException e)
public String describe()
IndexWriter
describe
in interface IndexWriter
Copyright © 2015 The Apache Software Foundation