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 IndexWriterIOExceptionpublic void write(NutchDocument doc) throws IOException
write in interface IndexWriterIOExceptionpublic void close()
throws IOException
close in interface IndexWriterIOExceptionpublic Configuration getConf()
getConf in interface Configurablepublic void setConf(Configuration conf)
setConf in interface Configurablepublic void delete(String key) throws IOException
delete in interface IndexWriterIOExceptionpublic void update(NutchDocument doc) throws IOException
update in interface IndexWriterIOExceptionpublic void commit()
throws IOException
commit in interface IndexWriterIOExceptionpublic static IOException makeIOException(org.apache.solr.client.solrj.SolrServerException e)
public String describe()
IndexWriterdescribe in interface IndexWriterCopyright © 2015 The Apache Software Foundation