Skip to main content.
home | support | download

Back to List Archive

Re: Ranking Question

From: Bill Moseley <moseley(at)not-real.hank.org>
Date: Wed Dec 18 2002 - 00:58:31 GMT
At 04:36 PM 12/17/02 -0800, Nikolaus Rath wrote:

>MetaNames key

>nikratio:~/test$ cat test.html 
><meta name="key" content="pattern">


>nikratio:~/test$ cat test2.html 
><meta name="key" content="pattern">
><body>
>some words blub foo bar
>pattern
></body>
></html>

>nikratio:~/test$ swish-search -w "pattern"
>1000 ./test2.html "test2.html" 113

It's only finding one file (pattern is in the body of only the second
file).  Its rank is scaled to 1000.

>nikratio:~/test$ swish-search -w "key=pattern"
>1000 ./test2.html "test2.html" 113
>1000 ./test.html "test.html" 105

pattern is in the meta name for each one.  They rank the same.  You are
only searching in the "key" metaname.  The "pattern" in the body is not
counted.

./swish-e -w key=pattern or pattern -H0   
1000 test2.html "test2.html" 114
250 test.html "test.html" 106

>It seems that swish does not match the pattern in the meta fields
>unless a meta match is explicitly requested. 

That's right.  You can't say 

   -w first_name=bill

and expect it to search someplace else, like in the last_name meta.  Think
of metanames as fields in a database.


-- 
Bill Moseley
mailto:moseley@hank.org
Received on Wed Dec 18 00:58:41 2002