Return-Path: Delivered-To: apmail-lucene-nutch-dev-archive@www.apache.org Received: (qmail 27751 invoked from network); 13 May 2007 20:09:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 May 2007 20:09:41 -0000 Received: (qmail 40927 invoked by uid 500); 13 May 2007 20:09:46 -0000 Delivered-To: apmail-lucene-nutch-dev-archive@lucene.apache.org Received: (qmail 40517 invoked by uid 500); 13 May 2007 20:09:45 -0000 Mailing-List: contact nutch-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: nutch-dev@lucene.apache.org Delivered-To: mailing list nutch-dev@lucene.apache.org Received: (qmail 40477 invoked by uid 99); 13 May 2007 20:09:45 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 13 May 2007 13:09:45 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 13 May 2007 13:09:38 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9BA6171406A for ; Sun, 13 May 2007 13:09:15 -0700 (PDT) Message-ID: <19857466.1179086955634.JavaMail.jira@brutus> Date: Sun, 13 May 2007 13:09:15 -0700 (PDT) From: =?utf-8?Q?Do=C4=9Facan_G=C3=BCney_=28JIRA=29?= To: nutch-dev@lucene.apache.org Subject: [jira] Commented: (NUTCH-485) Change HtmlParseFilter 's to return ParseResult object instead of Parse object In-Reply-To: <4593739.1178999415286.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/NUTCH-485?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:comment-tabpanel#action_12495410 ]=20 Do=C4=9Facan G=C3=BCney commented on NUTCH-485: ------------------------------------- I have two more minor nits: 1) ParseResult.isSuccess returns true only if all parses are successful. Th= is makes sense, but I think you should make it more obvious by mentioning i= t in method's javadoc.=20 2) There seems to be some whitespace issues. For example, some indents are= 4 spaces. All indents should be 2 space-indents. Anyway, I don't know if my vote counts, but, besides these two issues, I am= +1 on this patch. I think this may be very useful for image search. After parsing a page, one= can traverse DOM, add image src's as urls and the immediate text around im= ages as parse text (+ whatever data you can gather as parse data). Of cours= e, this doesn't automatically make Nutch an image search engine, but is a g= ood first step. > Change HtmlParseFilter 's to return ParseResult object instead of Parse o= bject > -------------------------------------------------------------------------= ----- > > Key: NUTCH-485 > URL: https://issues.apache.org/jira/browse/NUTCH-485 > Project: Nutch > Issue Type: Improvement > Components: fetcher > Affects Versions: 1.0.0 > Environment: All > Reporter: Gal Nitzan > Fix For: 1.0.0 > > Attachments: NUTCH-485.200705122151.patch, NUTCH-485.200705130928= .patch, NUTCH-485.200705130945.patch, NUTCH-485.200705131241.patch > > > The current implementation of HtmlParseFilters.java doesn't allow a filte= r to add parse objects to the ParseResult object. > A change to the HtmlParseFilter is needed which allows the filter to retu= rn ParseResult . and ofcourse a change to HtmlParseFilters . --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.