public class SolrIndexWriter extends java.lang.Object implements IndexWriter
X_POINT_ID| Constructor and Description |
|---|
SolrIndexWriter() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
commit() |
void |
delete(java.lang.String key) |
void |
deleteByQuery(java.lang.String query) |
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(SolrServerException e) |
void |
open(JobConf job,
java.lang.String name) |
void |
push() |
void |
setConf(Configuration conf) |
void |
update(NutchDocument doc) |
void |
write(NutchDocument doc) |
public void open(JobConf job, java.lang.String name) throws java.io.IOException
open in interface IndexWriterjava.io.IOExceptionpublic void delete(java.lang.String key)
throws java.io.IOException
delete in interface IndexWriterjava.io.IOExceptionpublic void deleteByQuery(java.lang.String query)
throws java.io.IOException
java.io.IOExceptionpublic void update(NutchDocument doc) throws java.io.IOException
update in interface IndexWriterjava.io.IOExceptionpublic void write(NutchDocument doc) throws java.io.IOException
write in interface IndexWriterjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface IndexWriterjava.io.IOExceptionpublic void commit()
throws java.io.IOException
commit in interface IndexWriterjava.io.IOExceptionpublic void push()
throws java.io.IOException
java.io.IOExceptionpublic static java.io.IOException makeIOException(SolrServerException e)
public Configuration getConf()
getConf in interface Configurablepublic void setConf(Configuration conf)
setConf in interface Configurablepublic java.lang.String describe()
IndexWriterdescribe in interface IndexWriterCopyright © 2017 The Apache Software Foundation