Hi Vangelis,

are there any other scoring plugins used? Esp. scoring-opic which is on per 
default.
The score is the result of sequentially calling the corresponding methods of 
all scoring filters.

Second, the interface o.a.n.scoring.ScoringFilter defines more methods. Despite
distributeScoreToOutlinks() also updateScore() is run every cycle.
So have a look what these methods do. In case, also check all other enabled 
scoring filters.
Outside scoring filters the score of a page is never changed.

Sebastian

On 02/17/2014 01:30 PM, Vangelis karv wrote:
> My exact problem is the following: I want to make a scoring function that 
> whenever a URL contains an .jpg image, the URL's score is increased by 10. In 
> method distributeScoreToOutlinks i added these: 
> 
> for(ScoreDatum free : scoreData){
>  try{
>  String aleos = free.getUrl();
> 
> if(aleos.contains(".jpg"))
>  {  
>  adjust+=10.0f;
>  }
>  
>  }catch(Exception e){}
>  
>  }
>  
>  float aleks = row.getScore();
>  
>  row.setScore(aleks+adjust);
>  
>  For example, http://www.uefa.com/ contains ~25 .jpg images and has score 
> ~251 with my scoring plugin. At the depth 2, that score goes to 502, at  
> depth 3 1004 e.t.c. . 
>  I want that page's score to stay at 251 and not be refetched and reupdated. 
> I think my problem is that Nutch at the beginning of the loop cycle, 
> reupdates http://www.uefa.com/ which is my prime URL.
>  
>  Any ideas?
>  Thank you in advance!
>  
>                                         
> 

Reply via email to