search for: makao009

Displaying 3 results from an estimated 3 matches for "makao009".

2011 Aug 09
3
what is the fastest way to fetch results which are sorted by timestamp ?
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
2011 Aug 11
3
Fwd: Re: what is the fastest way to fetch results which are sorted by timestamp ?
...Why? What's the most efficient process to build multiple Xapian indexes? Can > the "relevance" index provide any hints to building the sorted indexes? > > Cheers, > Tim. > > On Tue, 2011-08-09 at 18:04 +0100, Richard Boulton wrote: > > On 9 August 2011 17:48, makao009 <makao009 at 126.com> wrote: > > > what is the fastest way to fetch results which are sorted by timestamp > ? > > > > The fastest possible way is to have your index sorted by timestamp > > (ie, such that document IDs increase as the timestamp increases). > &gt...
2011 Aug 10
0
xapian enquire.set_docid_order(Xapian::Enquire::DESCENDING so slow!
i have 300 millions records and my search file like this , i want the newest 10 results that match my query , so i use boolean search and "enquire.set_docid_order(enquire.DESCENDING)" , but this method seems a little slow . when i remove "enquire.set_docid_order(enquire.DESCENDING)" it run much faster . how can i fetch the newest 10 results as fast as possible? search.py