> Further suggestions: 
> 
> I would allow multiple suffixes in the plugin.xml for one content 
> parser.  

Probably not a good idea. At least, do not make this a default.
There are *.php scripts which emit non text/html contents, such
as image/gif, etc.

I think, ideally, a parser should only be associated with
Content-Type. It is not parser's job to determine Content-Type
by filename extension (url suffix) or any other means.

John

> 
> Now: 
> <implementation id="net.nutch.parse.html.HtmlParser" 
>                       class="net.nutch.parse.html.HtmlParser" 
>                       contentType="text/html" 
>                       pathSuffix="html"/> 
> 
> Suggestion: 
> <implementation id="net.nutch.parse.html.HtmlParser" 
>                       class="net.nutch.parse.html.HtmlParser" 
>                       contentType="text/html" 
>                       pathSuffix="html, htm, jsp, php, asp"/>  
> 
> To get this working we need to change as well one line in the 
> ParserFactory: 
> (line 103) 
> 
> Now: 
> if (suffix.equals(extension.getAttribute("pathSuffix"))) 
> 
> Suggestion: 
> if (extension.getAttribute("pathSuffix").indexOf(suffix)=>0) 
> 
> 
> Cheers, 
> Stefan  
> 
> 


-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
>From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
Nutch-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nutch-developers

Reply via email to