Uploaded image for project: 'Nutch'
  1. Nutch
  2. NUTCH-1419

parsechecker and indexchecker to report protocol status

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: nutchgora, 1.6
    • Fix Version/s: 1.7, 2.2
    • Component/s: indexer, parser
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      Parsechecker and indexchecker should report the protocol status when the fetch was not successful (status other than 200/ok).

      In case of a redirect, the protocol status contains the URL a redirect points to. Usually, this URL should be checked instead of the original one which is not indexed. The content of a redirect response is less useful (and often empty):

      % nutch indexchecker http://lucene.apache.org/nutch/
      fetching: http://lucene.apache.org/nutch/
      parsing: http://lucene.apache.org/nutch/
      contentType: text/html
      content :       301 Moved Permanently Moved Permanently The document has moved here . Apache/2.4.1 (Unix) OpenSSL/1.
      title : 301 Moved Permanently
      host :  lucene.apache.org
      tstamp :        Tue Jul 03 13:27:32 CEST 2012
      url :   http://lucene.apache.org/nutch/
      

        Attachments

        1. NUTCH-1419-1.patch
          2 kB
          Sebastian Nagel
        2. NUTCH-1419-2.x.patch
          2 kB
          Lewis John McGibbney
        3. NUTCH-1419-2.x-v2.patch
          4 kB
          Lewis John McGibbney
        4. NUTCH-1419-2.x-v2.patch
          4 kB
          Lewis John McGibbney
        5. NUTCH-1419-trunk.patch
          2 kB
          Lewis John McGibbney

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              wastl-nagel Sebastian Nagel
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: