This is a bug in the query-basic plugin. The boosting values in the nutch-default.xml are not used.
We should open a bug in jira. This simple patch should work.

Index: src/plugin/query-basic/src/java/org/apache/nutch/searcher/ basic/BasicQueryFilter.java
===================================================================
--- src/plugin/query-basic/src/java/org/apache/nutch/searcher/basic/ BasicQueryFilter.java (revision 405566) +++ src/plugin/query-basic/src/java/org/apache/nutch/searcher/basic/ BasicQueryFilter.java (working copy)
@@ -48,7 +48,7 @@
   private static final String[] FIELDS =
   { "url", "anchor", "content", "title", "host" };
-  private final float[] FIELD_BOOSTS =
+  private float[] FIELD_BOOSTS =
   { URL_BOOST, ANCHOR_BOOST, 1.0f, TITLE_BOOST, HOST_BOOST };
   /**
@@ -178,6 +178,7 @@
     this.TITLE_BOOST = conf.getFloat("query.title.boost", 1.5f);
     this.HOST_BOOST = conf.getFloat("query.host.boost", 2.0f);
     this.PHRASE_BOOST = conf.getFloat("query.phrase.boost", 1.0f);
+ FIELD_BOOSTS = new float[]{ URL_BOOST, ANCHOR_BOOST, 1.0f, TITLE_BOOST, HOST_BOOST };
   }
   public Configuration getConf() {


Marko



Am 22.05.2006 um 22:07 schrieb Stefan Neufeind:

Hi,

I was experiencing a "strange" selection of search-results here. The
first idea was to rate the results with searchword in hostname higher.
So I set query.host.boost to quite a high value (50, later 200). But
nothing in the result changes.

Searching for the full hostname (www.example.com) does not give me any
search at all. Could it be that hostname is not taken into account
during a search?

What could be wrong here? Please help. *sigh*



Thanks a lot,
 Stefan




-------------------------------------------------------
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