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