Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Nutch Wiki" for change 
notification.

The following page has been changed by JakeVanderdray:
http://wiki.apache.org/nutch/WritingPluginExample

------------------------------------------------------------------------------
  
  == Plugin.xml ==
  
- Your plugin.xml file should look something like this:
+ Your plugin.xml file should look like this:
  
  {{{
  <?xml version="1.0" encoding="UTF-8"?>
@@ -40, +40 @@

     version="0.0.1"
     provider-name="nutch.org">
  
-     <runtime>
+    <runtime>
+       <!-- As defined in build.xml this plugin will end up bundled as 
recommended.jar -->
        <library name="recommended.jar">
           <export name="*"/>
        </library>
     </runtime>
  
+    <!-- The RecommendedParser extends the HtmlParseFilter to grab the 
contents of
+               any recommended meta tags -->
     <extension id="org.apache.nutch.parse.recommended.recommendedfilter"
                name="Recommended Parser"
                point="org.apache.nutch.parse.HtmlParseFilter">
@@ -53, +56 @@

                        
class="org.apache.nutch.parse.recommended.RecommendedParser"/>
     </extension>
  
+    <!-- TheRecommendedIndexer extends the IndexingFilter in order to add the 
contents
+               of the recommended meta tags (as found by the 
RecommendedParser) to the lucene
+               index. -->
     <extension id="org.apache.nutch.parse.recommended.recommendedindexer"
                name="Recommended identifier filter"
                point="org.apache.nutch.indexer.IndexingFilter">
@@ -60, +66 @@

                        
class="org.apache.nutch.parse.recommended.RecommendedIndexer"/>
     </extension>
  
+    <!-- The RecommendedQueryFilter gets called when you perform a search. It 
runs a
+               search for the user's query against the recommended fields.  In 
order to get
+           add this to the list of filters that gets run by default, you have 
to use
+               "fields=DEFAULT". -->   
     <extension id="org.apache.nutch.parse.recommended.recommendedSearcher"
                name="Recommended Search Query Filter"
                point="org.apache.nutch.searcher.QueryFilter">
        <implementation id="RecommendedQueryFilter"
                        
class="org.apache.nutch.parse.recommended.RecommendedQueryFilter"
-                       raw-fields="recommended"/>
+                       fields="DEFAULT"/>
     </extension>
  
  </plugin>

Reply via email to