>On Mon, Mar 08, 2004 at 04:56:15AM -0800, Ander wrote: >> Hi all, >> >> I'm doing some searches and I want that results where there are title matches appear first on the result list. > >In src/config.h find: > >#define RANK_TITLE 7 >#define RANK_HEADER 5 >#define RANK_META 3 >#define RANK_COMMENTS 1 >#define RANK_EMPHASIZED 0 > >You could try tweaking those, but the other problem is that swish >considers to some degree the number of hits in a file, so a large file >may out-rank a smaller file with the word in the title. Does not swish-e convert frequencys into percents?? Would it be a bad idea? Looks like in >the example below that the file with the title is a lot smaller, so that >may be what's happening. > > >> Example: >> >> ./swish-e -w indurain -f myindex >> >> 1000 http://www.cfnavarra.es/bone/032/be03025.pdf "be03025.pdf" 742118 >> 970 http://www.cfnavarra.es/bone/033/be03035.pdf "be03035.pdf" 623599 >> 945 http://www.cfnavarra.es/bone/01A/be01125.pdf "be01125.pdf" 484045 >> 945 http://www.cfnavarra.es/bone/021/be02009.pdf "be02009.pdf" 647090 >> 945 http://www.cfnavarra.es/bone/014/be01048.pdf "be01048.pdf" 299703 >> 934 http://www.cfnavarra.es/bone/028/be02102.pdf "be02102.pdf" 668120 >> 934 http://www.cfnavarra.es/bone/039/be03119.pdf "be03119.pdf" 616252 >> 891 http://www.cfnavarra.es/bone/038/be03107.pdf "be03107.pdf" 455015 >> 891 http://www.cfnavarra.es/bone/028/be02105.pdf "be02105.pdf" 1642589 >> 891 http://www.cfnavarra.es/bone/028/be02101.pdf "be02101.pdf" 565348 >> 891 http://www.arrakis.es/~angelman/indu.htm "Pagina Web de Miguel Indurain" 4253 >> >> This is my result set, but I want that Miguel Indurain's web page to be on the top. >> >> >> Is there now anyway to do it, or do I have to modify "rank.c" ? >> >> > >-- >Bill Moseley >moseley@hank.org > > _________________________________________________________ Txat euskalduna >>> http://www.euskalerria.org/solasguneaReceived on Tue Mar 9 00:39:02 2004