Re: Ordening documents

2004-01-20 Thread Doug Cutting
Yes, this is correct.

Peter Keegan wrote:
So they are sorted by reverse document number. Is this the 'external'
document number (the one that is adjusted for the segment's base)? If so,
then this means that documents with equal score are returned in the order in
which they were added to the index.  Is this correct?
Thanks,
Peter
- Original Message - 
From: "Morus Walter" <[EMAIL PROTECTED]>
To: "Lucene Users List" <[EMAIL PROTECTED]>
Sent: Saturday, January 17, 2004 4:57 PM
Subject: Re: Ordening documents



Peter Keegan writes:

What is the returned order for documents with identical scores?
have a look at the source of the lessThan method in
org.java.lucene.search.HitQueue:
protected final boolean lessThan(Object a, Object b) {
   ScoreDoc hitA = (ScoreDoc)a;
   ScoreDoc hitB = (ScoreDoc)b;
   if (hitA.score == hitB.score)
 return hitA.doc > hitB.doc;
   else
 return hitA.score < hitB.score;
}
sorting is done by this method.

HTH
Morus
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Ordening documents

2004-01-17 Thread Peter Keegan
So they are sorted by reverse document number. Is this the 'external'
document number (the one that is adjusted for the segment's base)? If so,
then this means that documents with equal score are returned in the order in
which they were added to the index.  Is this correct?

Thanks,
Peter

- Original Message - 
From: "Morus Walter" <[EMAIL PROTECTED]>
To: "Lucene Users List" <[EMAIL PROTECTED]>
Sent: Saturday, January 17, 2004 4:57 PM
Subject: Re: Ordening documents


> Peter Keegan writes:
> > What is the returned order for documents with identical scores?
> have a look at the source of the lessThan method in
> org.java.lucene.search.HitQueue:
>
> protected final boolean lessThan(Object a, Object b) {
> ScoreDoc hitA = (ScoreDoc)a;
> ScoreDoc hitB = (ScoreDoc)b;
> if (hitA.score == hitB.score)
>   return hitA.doc > hitB.doc;
> else
>   return hitA.score < hitB.score;
> }
>
> sorting is done by this method.
>
> HTH
> Morus
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Ordening documents

2004-01-17 Thread Morus Walter
Peter Keegan writes:
> What is the returned order for documents with identical scores?
have a look at the source of the lessThan method in 
org.java.lucene.search.HitQueue:

protected final boolean lessThan(Object a, Object b) {
ScoreDoc hitA = (ScoreDoc)a;
ScoreDoc hitB = (ScoreDoc)b;
if (hitA.score == hitB.score)
  return hitA.doc > hitB.doc; 
else
  return hitA.score < hitB.score;
}

sorting is done by this method.

HTH
Morus

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Ordening documents

2004-01-16 Thread Peter Keegan
What is the returned order for documents with identical scores?

Peter

- Original Message - 
From: "Chun, John" <[EMAIL PROTECTED]>
To: "Lucene Users List" <[EMAIL PROTECTED]>
Sent: Friday, January 16, 2004 3:44 PM
Subject: RE: Ordening documents


Results are returned by order of score (highest first), not by the order
they are inserted in the index.

You may find the faq useful, 
http://lucene.sourceforge.net/cgi-bin/faq/faqmanager.cgi
in particular take a look at the 'searching section'.

hth,
-John

-Original Message-
From: William W [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 16, 2004 2:34 PM
To: [EMAIL PROTECTED]
Subject: RE: Ordening documents



Hi Folks,

To the order of the result What really matters is ONLY the order in
which 
the information is stored in the index ?

Thanks,
William.



>From: "William W" <[EMAIL PROTECTED]>
>Reply-To: "Lucene Users List" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Ordening documents
>Date: Fri, 16 Jan 2004 19:14:06 +
>
>
>Hi folks,
>
>I have some documents
>
>  doc 1 ==>  name="Palm Zire"
>  doc 2 ==>  name="Palm Zilion Zire"
>  doc 3 ==>  name="Palm Test"
>
>I will insert these docs in my index following the order  doc 1, doc 2,

>doc3.
>
>If I execute the query ==> name:Palm
>Witch order will the documents come ?
>
>And if I execute the query ==> name:(Palml Zire) ??
>
>I thougth that the documents would ALWAYS be in the order that I
included 
>in the index.
>
>How will I know the order of the result ?
>
>Thanks,
>William.
>
>_
>Find high-speed 'net deals - comparison-shop your local providers here.

>https://broadband.msn.com
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>

_
Check out the coupons and bargains on MSN Offers! 
http://shopping.msn.com/softcontent/softcontent.aspx?scmId=1418


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Ordening documents

2004-01-16 Thread Chun, John
Results are returned by order of score (highest first), not by the order
they are inserted in the index.

You may find the faq useful, 
http://lucene.sourceforge.net/cgi-bin/faq/faqmanager.cgi
in particular take a look at the 'searching section'.

hth,
-John

-Original Message-
From: William W [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 16, 2004 2:34 PM
To: [EMAIL PROTECTED]
Subject: RE: Ordening documents



Hi Folks,

To the order of the result What really matters is ONLY the order in
which 
the information is stored in the index ?

Thanks,
William.



>From: "William W" <[EMAIL PROTECTED]>
>Reply-To: "Lucene Users List" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Ordening documents
>Date: Fri, 16 Jan 2004 19:14:06 +
>
>
>Hi folks,
>
>I have some documents
>
>  doc 1 ==>  name="Palm Zire"
>  doc 2 ==>  name="Palm Zilion Zire"
>  doc 3 ==>  name="Palm Test"
>
>I will insert these docs in my index following the order  doc 1, doc 2,

>doc3.
>
>If I execute the query ==> name:Palm
>Witch order will the documents come ?
>
>And if I execute the query ==> name:(Palml Zire) ??
>
>I thougth that the documents would ALWAYS be in the order that I
included 
>in the index.
>
>How will I know the order of the result ?
>
>Thanks,
>William.
>
>_
>Find high-speed 'net deals - comparison-shop your local providers here.

>https://broadband.msn.com
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>

_
Check out the coupons and bargains on MSN Offers! 
http://shopping.msn.com/softcontent/softcontent.aspx?scmId=1418


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Ordening documents

2004-01-16 Thread Michael Giles
William,

The order of the results are going to be based on how well they match the 
query (i.e. weighted by relevancy).  So although all of those values 
contain the term "Palm", I would assume you would get the shorter entries 
(i.e. 1 & 3) before the longer ones (2) as they have a higher percentage of 
"palmness".  Same goes for the second query (it is a better match for 1, 
than 2).  If you want the documents to come back in their document order, 
you would need to sort the results yourself.

-Mike

At 02:33 PM 1/16/2004, you wrote:

Hi Folks,

To the order of the result What really matters is ONLY the order in which 
the information is stored in the index ?

Thanks,
William.


From: "William W" <[EMAIL PROTECTED]>
Reply-To: "Lucene Users List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Ordening documents
Date: Fri, 16 Jan 2004 19:14:06 +
Hi folks,

I have some documents

 doc 1 ==>  name="Palm Zire"
 doc 2 ==>  name="Palm Zilion Zire"
 doc 3 ==>  name="Palm Test"
I will insert these docs in my index following the order  doc 1, doc 2, doc3.

If I execute the query ==> name:Palm
Witch order will the documents come ?
And if I execute the query ==> name:(Palml Zire) ??

I thougth that the documents would ALWAYS be in the order that I included 
in the index.

How will I know the order of the result ?

Thanks,
William.
_
Find high-speed ‘net deals — comparison-shop your local providers here. 
https://broadband.msn.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Check out the coupons and bargains on MSN Offers! 
http://shopping.msn.com/softcontent/softcontent.aspx?scmId=1418

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Ordening documents

2004-01-16 Thread William W
Hi Folks,

To the order of the result What really matters is ONLY the order in which 
the information is stored in the index ?

Thanks,
William.


From: "William W" <[EMAIL PROTECTED]>
Reply-To: "Lucene Users List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Ordening documents
Date: Fri, 16 Jan 2004 19:14:06 +
Hi folks,

I have some documents

 doc 1 ==>  name="Palm Zire"
 doc 2 ==>  name="Palm Zilion Zire"
 doc 3 ==>  name="Palm Test"
I will insert these docs in my index following the order  doc 1, doc 2, 
doc3.

If I execute the query ==> name:Palm
Witch order will the documents come ?
And if I execute the query ==> name:(Palml Zire) ??

I thougth that the documents would ALWAYS be in the order that I included 
in the index.

How will I know the order of the result ?

Thanks,
William.
_
Find high-speed ‘net deals — comparison-shop your local providers here. 
https://broadband.msn.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Check out the coupons and bargains on MSN Offers! 
http://shopping.msn.com/softcontent/softcontent.aspx?scmId=1418

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]