nutch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Markus Jelsma (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (NUTCH-1052) Multiple deletes of the same URL using SolrClean
Date Tue, 06 Sep 2011 08:24:09 GMT

    [ https://issues.apache.org/jira/browse/NUTCH-1052?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13097796#comment-13097796
] 

Markus Jelsma commented on NUTCH-1052:
--------------------------------------

Perhaps an even better solution is to keep SolrClean as a tool to purge the whole index of
all 404's existing in the CrawlDB and change the indexers to optionally send delete commands.

IndexerMapReduce skips non FETCH_SUCCESS CrawlDatum's. If can be modified to pass those records.
Only problem is how get a delete flag in the SolrWriter; it takes only a NutchDocument object.

With this approach we make the SolrClean tool obsolete in regular crawl cycles which makes
a huge difference with large indexes and CrawlDB.

Comments?!

> Multiple deletes of the same URL using SolrClean
> ------------------------------------------------
>
>                 Key: NUTCH-1052
>                 URL: https://issues.apache.org/jira/browse/NUTCH-1052
>             Project: Nutch
>          Issue Type: Improvement
>          Components: indexer
>    Affects Versions: 1.3, 1.4
>            Reporter: Tim Pease
>            Priority: Minor
>             Fix For: 1.4, 2.0
>
>
> The SolrClean class does not keep track of purged URLs, it only checks the URL status
for "db_gone". When run multiple times the same list of URLs will be deleted from Solr. For
small, stable crawl databases this is not a problem. For larger crawls this could be an issue.
SolrClean will become an expensive operation.
> One solution is to add a "purged" flag in the CrawlDatum metadata. SolrClean would then
check this flag in addition to the "db_gone" status before adding the URL to the delete list.
> Another solution is to add a new state to the status field "db_gone_and_purged".
> Either way, the crawl DB will need to be updated after the Solr delete has successfully
occurred.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message