Hi,
Try to delete nutch*.war from  /opt/tomcat/webapps/ or ROOT.war (if you
maybe renamed it) .. It helped me once with some stuped container problem.
As for the plugins .. Look at the /opt/tomcat/log/catalina.out 

As for the fields, start Luke, and look at your fields..
Go to first tab (Overview), select your field from the "available fields"
list and click show top terms to check if your field is being filled at
all..

If you cannot still search title, and have it in luke make a simple plugin

/*---------------------*/
package com.a.nutch;

import org.apache.nutch.searcher.RawFieldQueryFilter;

public class TitleQueryFilter extends RawFieldQueryFilter {
        public TitleQueryFilter() {
                super("title");
        }
}
/*---------------------*/

Add into plugin.xml:

   <extension id="com.a.nutch.TitleQueryFilter"
              name="title filter"
              point="org.apache.nutch.searcher.QueryFilter">
      <implementation id="TitleQueryFilter"
                      class="com.alteray.nutch.TitleQueryFilter"
                      raw-fields="title"/>
   </extension>

And it will work for sure..

Compile plugin with ant and copy to
/opt/tomcat/webapps/ROOT/WEB-INF/classes/plugins
Add to nutch-site.xml 

Pay attention when making query filters, if you extend RawFieldQueryFilter,
in plugin.xml use raw-fields, if you extend FieldQueryFilter then in plugin
use fields. I still have no idea what is the difference between
RawFieldQueryFilter and FieldQueryFilter, and had no time to look at the
source, if someone can enlighten me I would appreciate it.

Bogdan

Ps. I'm not that experienced with nutch (few weeks only) so there might be
easier way but this will work, at least on 0.7.1 (just tried it)

> In my case, I am editing 
> /opt/tomcat/webapps/ROOT/WEB-INF/classes/nutch-
> site.xml
> 
> url: works fine, as before.  Strangely, site: does not work.  
> I only have one site that I'm indexing, and it's an ip 
> address (for now, testing), so maybe that's why?
> 
> Still can't get title: to work, or anything else...
> 
> Is there some other file I have to edit?
> 
> How can I verify what plugins are loaded?
> 
> Ben



_______________________________________________
Nutch-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nutch-general

Reply via email to