Hi, Have a look at the patch on https://issues.apache.org/jira/browse/NUTCH-563 This should allow you to add custom fields to the default ones.
HTH, Julien 2008/11/19 shree !!! <[EMAIL PROTECTED]> > <[email protected]> > > I wrote a recommended plugin using the > WritingPluginExamle-0.9< > http://wiki.apache.org/nutch/WritingPluginExample-0.9>. > To add the RecommendedQueryFilter to the list of filter that run by default > I added the below code in the plugin.xml > > > > <!-- 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"> > > <parameter name="fields" value="DEFAULT"/> > > </implementation> > > </extension> > > > > In the RecommendedQueryFilter.java I increased the boost value of the field > to higher number than the rest of the fields. > > > > Inspite of this I could not see the results that have this field in the > first. I am not sure if it taking this field also for the default search > field. > > > > I tried by writing the RecommendedQueryFilter.java extending the > RawFieldQueryFilter class and setting the boost value in the configuration > file. But this is not picking the boost value too. > > So can anyone please help to an additional field along with the existing > default fields. > -- DigitalPebble Ltd http://www.digitalpebble.com
