[ http://issues.apache.org/jira/browse/NUTCH-140?page=comments#action_12366376 ]
Chris A. Mattmann commented on NUTCH-140: ----------------------------------------- Hi Folks, I've went ahead and created an initial patch for this issue. I'll be attaching it to JIRA within the next day for review. Thanks! Cheers, Chris > Add alias capability in parse-plugins.xml file that allows > mimeType->extensionId mapping > ---------------------------------------------------------------------------------------- > > Key: NUTCH-140 > URL: http://issues.apache.org/jira/browse/NUTCH-140 > Project: Nutch > Type: Improvement > Components: fetcher > Environment: Power Mac OS X 10.4, Dual Processor G5 2.0 Ghz, 1.5 GB RAM, > although bug is independent of environment > Reporter: Chris A. Mattmann > Assignee: Chris A. Mattmann > Priority: Minor > > Jerome and I have been talking about an idea to address the current issue > raised by Stefan G. about having a mapping of mimeType->list of pluginIds > rather than mimeType->list of extensionIds in the parse-plugins.xml file. > We've come up with the following proposed update that would seemingly fix > this problem. > We propose to have the concept of "aliases" in the parse-plugins.xml file, > defined at the end of the file, something lie: > <parse-plugins> > .... > <mimeType name="text/html"> > <plugin id="parse-html"/> > </mimeType> > ..... > > <aliases> > <alias name="parse-html" > extension-point="org.apache.nutch.parse.html.HtmlParser"/> > .... > <alias name="parse-html2" extension-point="my.other.html.Parser"/> > > .... > </aliases> > </parse-plugins> > What do you guys think? This approach would be flexible enough to allow the > mapping of extensionIds to mimeTypes, but without impacting the current > "pluginId" concept. > Comments welcome. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ Nutch-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nutch-developers
