[Xapian-discuss] what is the fastest way to fetch results which are sorted by timestamp ?

makao009 makao009 at 126.com
Tue Aug 9 17:48:50 BST 2011


what is the fastest way to fetch results which are sorted by timestamp ?


i want to use xapian as my search engine , use add_boolean_term(something) and add_value(0,sortable_serialise(get_timestamp())) to a doc. 


search through enquire.set_weighting_scheme(xapian.BoolWeight()) and enquire.set_sort_by_value(0,True) to ensure that the results are sorted by the timestamp.


This method is ok , but is there a faster way to do that ? Since i have millions of records .


More information about the Xapian-discuss mailing list