[Xapian-discuss] MSet order
Pierre-Alain Moellic
pamoellic at gmail.com
Tue Mar 8 11:27:41 GMT 2011
Hello
I defined a weighting scheme to simulate a king of "euclidean" distance.
To test it, i used a database with 1000 documents.
If I run :
enquire.set_weighting_scheme(MyWeight());
Xapian::MSet matches = enquire.get_mset(0, 1000);
I have a correct list of results.
But if I run Xapian::MSet matches = enquire.get_mset(0, 10);
I don't have the top-10 results.
If I run Xapian::MSet matches = enquire.get_mset(0, 20);
I d'ont have the top-20 results and it's even not the same order than the
previous top-10 (actually it's the top-10 with inserted results).
I'm lost !
Regards,
pa.
More information about the Xapian-discuss
mailing list