search for: sortable_unserialise

Displaying 5 results from an estimated 5 matches for "sortable_unserialise".

2015 Nov 14
1
Xapian-Haystack is available in Python 3
...ION = "1.3.3" ]; then XAPIAN_CONFIG=$VIRTUAL_ENV/bin/xapian-config-1.3 else XAPIAN_CONFIG= fi 2. Almost all Xapian bindings output is in non-unicode that can be converted to unicode via `decode('utf-8')`, which is great. Yet, this is still not perfect because e.g. `xapian.sortable_unserialise(12.345)` is not decodable to utf-8. Thus, depending on the type of field (string, int, float) (in the user side), its value will be either a string or byte strings, something that is against any Python idiom. Suggestion: make all public interface of Xapian in Python to return either unicode or utf...
2017 Dec 18
2
How to get the serialise score returned in Xapian::KeyMaker->operator().
On Sat, Dec 16, 2017 at 10:11:40PM +0000, Olly Betts wrote: > Unfortunately the sort key isn't currently exposed via the public API. > It's available internally and it seems like it ought to be accessible > but there's no accessor method for it - I can add one but that won't > help for existing releases. I've added MSetIterator::get_sort_key() to master in
2011 Aug 10
0
xapian enquire.set_docid_order(Xapian::Enquire::DESCENDING so slow!
...e.DESCENDING) matches = enquire.get_mset(0,10) print "%i results found . " % matches.get_matches_estimated() print "Results 1-%i:" % matches.size() for m in matches: print "rand= %-4d docid=%-8i" % (m.rank+1,m.docid), print " value:", xapian.sortable_unserialise(m.document.get_value(0)) except Exception, e: print "Exception : %s " % str(e) print 'cost %.3f second ' % (time.time()-t1)
2018 Jan 15
0
How to get the serialise score returned in Xapian::KeyMaker->operator().
...t slowly. Now we want to constuct a forward index (using unordered map) which uses docid as key and its value contains the slot values we need, also the forward index will be constructed while we starting our application. Then we can get the values we used at the same time, and we need not to use sortable_unserialise(). Do you have some suggestions about this or is there some other way to make our search faster? By the way, our application scenario is here. https://lists.xapian.org/pipermail/xapian-discuss/2018-January/009579.html Cheers, Zhang -- 发自我的网易邮箱手机智能版 在 2017-12-19 06:40:52,"Olly Be...
2008 Sep 09
3
sort by value fails
hi all, i want use sort_by_value to sort by "username". so in the indexing process i add the value i want sort by as value (lang is php) $document->add_value(0, 'value'); when i sort i got all specialchars at the beginning ? ? ? alf the values be indexed as utf8. what do i wrong? any suggestions? regards, sven