org.apache.nutch.indexer.solr
Class SolrClean
java.lang.Object
org.apache.nutch.indexer.solr.SolrClean
- All Implemented Interfaces:
- Configurable, Tool
public class SolrClean
- extends Object
- implements Tool
The class scans CrawlDB looking for entries with status DB_GONE (404) and sends delete requests to Solr
for those documents.
- Author:
- Claudio Martella
Field Summary |
static org.slf4j.Logger |
LOG
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
public static final org.slf4j.Logger LOG
SolrClean
public SolrClean()
getConf
public Configuration getConf()
- Specified by:
getConf
in interface Configurable
setConf
public void setConf(Configuration conf)
- Specified by:
setConf
in interface Configurable
delete
public void delete(String crawldb,
String solrUrl,
boolean noCommit)
throws IOException
- Throws:
IOException
run
public int run(String[] args)
throws IOException
- Specified by:
run
in interface Tool
- Throws:
IOException
main
public static void main(String[] args)
throws Exception
- Throws:
Exception
Copyright © 2012 The Apache Software Foundation