nutch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebastian Nagel (JIRA)" <>
Subject [jira] [Commented] (NUTCH-1708) use same id when indexing and deleting redirects
Date Mon, 14 Apr 2014 19:58:18 GMT


Sebastian Nagel commented on NUTCH-1708:

??need to get rid of the repr_url??
Not necessarily:
# if we use for field 'id' the URL a document has been accessed (with any possible status),
everything (indexing, updating, deletion) should work -- those IDs are in sync with CrawlDb
and may never appear twice.
# then we are free to fill the field 'url' with a more "pretty thing": repr URL (usually shorter),
punycoded (without ugly {{xn--}}), showing letters instead of percent-encoded sequences, etc.
Since field 'url' is tokenized, decoding the content makes more sense. In doubt, we could
make it configurable which of these "denormalization" steps are applied.
# finally, we achieve the same behaviour in 1.x and 2.x

> use same id when indexing and deleting redirects
> ------------------------------------------------
>                 Key: NUTCH-1708
>                 URL:
>             Project: Nutch
>          Issue Type: Bug
>          Components: indexer
>    Affects Versions: 1.7
>            Reporter: Sebastian Nagel
> Redirect targets are indexed using "representative URL"
> * in Fetcher repr URL is determined by URLUtil.chooseRepr() and stored in CrawlDatum
(CrawlDb). Repr URL is either source or target URL of the redirect pair.
> * NutchField "url" is filled by basic indexing filter with repr URL
> * id field used as unique key is filled from url per solrindex-mapping.xml
> Deletion of redirects is done in IndexerMapReduce.reduce() by key which is the URL of
the redirect source. If the source URL is chosen as repr URL a redirect target may get erroneously
> Test crawl with seed {{}} which redirects to {{}}.
DummyIndexWriter (NUTCH-1707) indicates that same URL is deleted and added:
> {code}
> delete
> add
> {code}

This message was sent by Atlassian JIRA

View raw message