You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nutch.apache.org by ma...@apache.org on 2013/07/04 10:59:13 UTC
svn commit: r1499689 - in /nutch/trunk: CHANGES.txt
src/plugin/indexer-elastic/src/java/org/apache/nutch/indexwriter/elastic/ElasticIndexWriter.java
Author: markus
Date: Thu Jul 4 08:59:13 2013
New Revision: 1499689
URL: http://svn.apache.org/r1499689
Log:
NUTCH-1601 ElasticSearchIndexer fails to properly delete documents
Modified:
nutch/trunk/CHANGES.txt
nutch/trunk/src/plugin/indexer-elastic/src/java/org/apache/nutch/indexwriter/elastic/ElasticIndexWriter.java
Modified: nutch/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/nutch/trunk/CHANGES.txt?rev=1499689&r1=1499688&r2=1499689&view=diff
==============================================================================
--- nutch/trunk/CHANGES.txt (original)
+++ nutch/trunk/CHANGES.txt Thu Jul 4 08:59:13 2013
@@ -2,6 +2,8 @@ Nutch Change Log
Nutch Development Trunk
+* NUTCH-1601 ElasticSearchIndexer fails to properly delete documents (markus)
+
* NUTCH-1600 Injector overwrite does not always work properly (markus)
* NUTCH-1581 CrawlDB csv output to include metadata (markus)
Modified: nutch/trunk/src/plugin/indexer-elastic/src/java/org/apache/nutch/indexwriter/elastic/ElasticIndexWriter.java
URL: http://svn.apache.org/viewvc/nutch/trunk/src/plugin/indexer-elastic/src/java/org/apache/nutch/indexwriter/elastic/ElasticIndexWriter.java?rev=1499689&r1=1499688&r2=1499689&view=diff
==============================================================================
--- nutch/trunk/src/plugin/indexer-elastic/src/java/org/apache/nutch/indexwriter/elastic/ElasticIndexWriter.java (original)
+++ nutch/trunk/src/plugin/indexer-elastic/src/java/org/apache/nutch/indexwriter/elastic/ElasticIndexWriter.java Thu Jul 4 08:59:13 2013
@@ -139,6 +139,8 @@ public class ElasticIndexWriter implemen
public void delete(String key) throws IOException {
try{
DeleteRequestBuilder builder = client.prepareDelete();
+ builder.setIndex(defaultIndex);
+ builder.setType("doc");
builder.setId(key);
builder.execute().actionGet();
}catch(ElasticSearchException e)