[Namazu-users-en] Re: MaxHit directive apparently being ignored

Tadamasa Teranishi yw3t-trns at asahi-net.or.jp
Fri Jul 28 17:35:27 JST 2006

Anthony Sadler wrote:
> I have a Fedora Core 3 box running namazu 2.0.14. For some reason, 
> namazu apparently ignores the MaxHit directive in the .namazurc file.
> I do not know what the max setting is, but I know searches that 
> return a small amount of entries Namaz

Do not use Namazu 2.0.14. 
The version must improve to Namazu 2.0.16 at once. 

MaxHit and MaxMach are debugged by Namazu 2.0.15. 

> Up the top, I have this:
> This index contains  5,072  documents and  122,292  keywords.
> That would imply to me that there are a possible 5072 results. 
> My .namazurc file is attached below in complete. However, here is 
> the relevant sections:
> MaxHit 5000
> MaxMatch 200000
> So by that, I should have got some results.

If "test" is included in all documents, it becomes an error because 
MaxHit is smaller than 5072. 

If MaxHit is adjusted to a bigger value, it is likely not to become
an error. 

However, it is necessary to note it because the deleted number 
of documents is included. 

Please try again by the version's improving to Namazu 2.0.16, 
and compressing the index with gcnmz. 

> Notice how I have specified an insane value for -n. 
> The .namazurc file I specified is the one below. Surely there 
> cannot be more than 2147483647 matches in a database that 
> contains 5,072 documents and 122,292 keywords?

The -n option specifies the number of documents displayed at a time. 
It is not the one to specify the number of maximum hits. 
TADAMASA TERANISHI yw3t-trns �� asahi-net.or.jp
Key fingerprint =  474E 4D93 8E97 11F6 662D  8A42 17F5 52F4 10E7 D14E

More information about the Namazu-users-en mailing list