|Adjust search rankings/scoring? [message #586259]
||Fri, 12 October 2007 17:13
Originally posted by: ddirks.ittvis.com|
Is there any way to tweak the ranking or scoring of XHTML documentation
content for the Search mechanism (Lucene)?
I'm having a hard time understanding how the default page ranking works,
and even less success in influencing it.
Here's an example of what I'd like to do. I've got numerous topics that
contain a given string (e.g. "WIDGET_BASE"), but only one file that
contains this string in the <title> element of the XHTML file. I would
very much like this document to be ranked highest by the search, but in
practice it comes out somewhere down in the middle of the list of hits.
My theory is that the default search is somehow paying more attention to
the length of the file than to the <title> element; files that are short,
and thus have a higher "density" of the search term, seem to receive
I've tried the old webmaster trick of adding <meta name=keywords ...>, but
this does not seem to affect the rankings.
Is there anything I can do in the content to affect the rankings?
Is there any other way to affect the rankings outside of adding a new
Lucene analyzer extension?
If the only way to do this is to override the default Lucene analyzer,
does anyone have any pointers on doing this, or sample code? I'm not a
Java programmer myself, but I might be able to convince one to help me if
I had something to start from...
Thanks for any help,
Powered by FUDForum
. Page generated in 0.01409 seconds