Ciao,
Sorry if this question may be silly, but I didn't know about this
before. I know I should have looked at the sources first, but I think that
users should perhaps know about this. Here is my question: by default,
ht://Dig gives different weights to words depending on the tag they are in.
What are the default weights?
I just put in the configuration file all the *_factor to '1'. For
instance, let's suppose we have this 'silly' HTML file.
<html>
<head>
<title>title</title>
<meta name="description" content="descr">
<meta name="keywords" content="key">
<meta name="htdig-keywords" content="htkey">
</head>
<body>
<h1>header1</h1>
<h2>header2</h2>
<h3>header3</h3>
text
</body>
</html>
Here is the wordlist file. The w: field shows the weight.
descr i:0 l:157 w:843
header1 i:0 l:734 w:266
header2 i:0 l:800 w:200
header3 i:0 l:865 w:135
htkey i:0 l:1 w:999
key i:0 l:1 w:999
text i:0 l:915 w:85
title i:0 l:92 w:908
By default a word in the keyword sections has a score of 999, right? What
are the default values and where are they set? Indeed, I thought that by
modifying the *_factor I could have set them the way I wanted, not just
modified the factor for a default one. I believed indeed that, using the
example above, if I had put:
keywords_factor: 1
text_factor: 1
I would have had the same score for the 'text' word and the 'key' and
'htkey' words.
Ciao and thanks!
-Gabriele
--
Gabriele Bartolini - Computer Programmer
U.O. Rete Civica - Comune di Prato - Prato - Italia - Europa
[EMAIL PROTECTED] | http://www.po-net.prato.it/
The nice thing about Windows is - It does not just crash,
it displays a dialog box and lets you press 'OK' first.
_______________________________________________
htdig-general mailing list <[EMAIL PROTECTED]>
To unsubscribe, send a message to <[EMAIL PROTECTED]> with a
subject of unsubscribe
FAQ: http://htdig.sourceforge.net/FAQ.html