I also tried with

field="rating" instead of fields="DEFAULT" in plugin.xml, still no luck

On 6/24/06, TDLN <[EMAIL PROTECTED]> wrote:
Please post plugin.xml and QueryFilter implementation code.

Rgrds, Thomas

On 6/23/06, Jayant Kumar Gandhi <[EMAIL PROTECTED]> wrote:
> Hi thanks!!!
>
> I have done all that. I was able to achieve sorting as well. I have
> issue in fielded searching. The search for the custom field is not
> working.
> If I search for 'rating:4' i get no results, but in normal search
> results if i click explain, i am able to see records having rating 4
> exist. the indexing/parsing is happening fine. plugin has been
> activated in nutch-site.xml . still i get no search results. any idea
> why?
>
> On 6/23/06, TDLN <[EMAIL PROTECTED]> wrote:
> > You can start here for learning more about Nutch:
> >
> > http://wiki.apache.org/nutch/
> >
> > And here is an excellent tutorial that covers getting your custom
> > fields in the index:
> >
> > http://wiki.apache.org/nutch/WritingPluginExample
> >
> > If you have read all this you can come back and we will discuss sorting :)
> >
> > HTH Thomas
> >
> > On 6/19/06, Jayant Kumar Gandhi <[EMAIL PROTECTED]> wrote:
> > > Hi All,
> > >
> > > I am planning/evaluating Nutch for my website. I will be have a page
> > > with 3-4 custom metafields (field1, field2,...) with their values. I
> > > need to be able to search using the field tag like field1:<search
> > > term> field2:<seach term> etc. Also the will be shown 3-4 links using
> > > which he can sort the results based on any of these custom fields.
> > > I have been searching the net but I have not been able to find a
> > > tutorial/how-to regarding this. I think the book 'Lucene in Action'
> > > covers it, but I am not very sure about it. Also, I have not been able
> > > to find it locally.
> > >
> > > Can someone please guide me with this?
> > >
> > > Thanks and Best Regards,
> > > Jayant Gandhi.
> > >
> > > --
> > > www.jkg.in | http://www.jkg.in/contact-me/
> > > Jayant Kr. Gandhi
> > > Student,
> > > M.Tech. Computer Tech. Class of 2007,
> > > IIT Delhi, India
> > >
> >
>
>
> --
> www.jkg.in | http://www.jkg.in/contact-me/
> Jayant Kr. Gandhi | +91-9871412929
> M.Tech. Computer Tech. Class of 2007,
> D-38, Aravali Hostel, IIT Delhi,
> Hauz Khas, Delhi-110016
>



--
www.jkg.in | http://www.jkg.in/contact-me/
Jayant Kr. Gandhi | +91-9871412929
M.Tech. Computer Tech. Class of 2007,
D-38, Aravali Hostel, IIT Delhi,
Hauz Khas, Delhi-110016
<?xml version="1.0" encoding="UTF-8"?>
<plugin
   id="query-rating"
   name="Rating Parser/Filter"
   version="0.0.1"
   provider-name="jkg.in">

   <runtime>
      <library name="query-rating.jar">
         <export name="*"/>
      </library>
   </runtime>

   <!-- The RatingParser extends the HtmlParseFilter to grab the contents of
                any rating meta tags -->
   <extension id="org.apache.nutch.parse.rating.ratingfilter"
              name="Rating Parser"
              point="org.apache.nutch.parse.HtmlParseFilter">
      <implementation id="RatingParser"
                      class="org.apache.nutch.parse.rating.RatingParser"/>
   </extension>

   <!-- The RatingIndexer extends the IndexingFilter in order to add the contents
                of the rating meta tags (as found by the RatingParser) to the lucene
                index. -->
   <extension id="org.apache.nutch.parse.rating.ratingindexer"
              name="Rating identifier filter"
              point="org.apache.nutch.indexer.IndexingFilter">
      <implementation id="RatingIndexer"
                      class="org.apache.nutch.parse.rating.RatingIndexer"/>
   </extension>

   <!-- The RatingQueryFilter gets called when you perform a search. It runs a
                search for the user's query against the rating 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.rating.ratingSearcher"
              name="Rating Search Query Filter"
              point="org.apache.nutch.searcher.QueryFilter">
      <implementation id="RatingQueryFilter"
                      class="org.apache.nutch.parse.rating.RatingQueryFilter"
                      fields="DEFAULT"/>
   </extension>

</plugin>
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Nutch-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nutch-general

Reply via email to