You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Samir Satam <ss...@copyright.com> on 2002/07/08 18:03:23 UTC

LIFO or FIFO??

Hello,
I am new to Lucene, and during my development, I observed that...

the articles indexed last were the articles that were returned first, in the results. As if the index was a LIFO. Now this is perfectly acceptable as long as we need to get the latest documents. (articles on WSJ published today were indexed today, nad hence are more recent and more relevant). But I also have to index the older articles.  So, I have 2 questions...
1. Is my observation correct?
2. I was wondering if anybody had similar problems, and how did they fix it?


thanks
Samir

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: LIFO or FIFO??

Posted by Brandon Jockman <br...@isogen.com>.
Samir,

I think its more likely that the more recently indexed articles had a higher
'score' and thus were displayed first in results. Hits are ranked based on
an algorithm (see FAQ). You should printout the 'score' for each document
hit and see that the first results displayed actually had a higher score
than the older ones. I don't think FIFO/LIFO have anything to do with it...
Look at the scoring algorithm; then try searching for things that should
have a higher score in the older documents and see if they come up higher in
your results.

Hope that helps,

-Brandon
- brandonj@isogen.com

----- Original Message -----
From: "Samir Satam" <ss...@copyright.com>
To: "Lucene Users List" <lu...@jakarta.apache.org>
Sent: Monday, July 08, 2002 11:03 AM
Subject: LIFO or FIFO??


> Hello,
> I am new to Lucene, and during my development, I observed that...
>
> the articles indexed last were the articles that were returned first, in
the results. As if the index was a LIFO. Now this is perfectly acceptable as
long as we need to get the latest documents. (articles on WSJ published
today were indexed today, nad hence are more recent and more relevant). But
I also have to index the older articles.  So, I have 2 questions...
> 1. Is my observation correct?
> 2. I was wondering if anybody had similar problems, and how did they fix
it?
>
>
> thanks
> Samir
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>