public class SolrIndexWriter extends Object implements IndexWriter
X_POINT_ID
Constructor and Description |
---|
SolrIndexWriter() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
commit() |
void |
delete(String key) |
Map<String,Map.Entry<String,Object>> |
describe()
Returns
Map with the specific parameters the IndexWriter instance
can take. |
Configuration |
getConf() |
void |
open(Configuration conf,
String name) |
void |
open(IndexWriterParams parameters)
Initializes the internal variables from a given index writer configuration.
|
void |
setConf(Configuration conf) |
void |
update(NutchDocument doc) |
void |
write(NutchDocument doc) |
public void open(Configuration conf, String name)
open
in interface IndexWriter
public void open(IndexWriterParams parameters)
open
in interface IndexWriter
parameters
- Params from the index writer configuration.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 write(NutchDocument doc) throws IOException
write
in interface IndexWriter
IOException
public void close() throws IOException
close
in interface IndexWriter
IOException
public void commit() throws IOException
commit
in interface IndexWriter
IOException
public Configuration getConf()
getConf
in interface Configurable
public void setConf(Configuration conf)
setConf
in interface Configurable
Copyright © 2021 The Apache Software Foundation