lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From supereric <>
Subject Scoring results?!
Date Wed, 09 May 2007 06:39:57 GMT

How I can get the tag word score in lucene. suppose that you have searched a
tag word and 3 hit documents
are now found. 
1 -How someone could find number of occurrences in any document so it could
sort the results.
Also I wan to have some other policies for ranking the results. What should
I do to handle that. for example 
I want to score boldfaced tag words in an html document twice normal texts.
2- How I can omit some tag words from the index?! for example common words
in another language?

> You'll have to implement your own ranking on top of Lucene.  Lucene only
> gives you document scores, which is a measure of how well your query match
> a
> document. Page rank determines how relevant a document is to your query, a
> document might score well by having a lot of the query words, but it might
> not be what you're looking for.
> On 4/14/07, karl wettin <> wrote:
>> 14 apr 2007 kl. 06.19 skrev supereric:
>> > I want to change the page ranking algorithm in lucene and I do not
>> > know
>> > where to start from and what file should I change?
>> > I do not know what classes are involved. I have only a few days to
>> > do so, so
>> > please help me with your complete explanation as a big favor!
>> Eric,
>> Lucene has no built in page rank, however you might mean something
>> else. It is easier to help if you explain what it is you want to achive.
>> --
>> karl
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail:
>> For additional commands, e-mail:
> -- 
> "talk trash and carry a small stick."

View this message in context:
Sent from the Lucene - Java Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message