[Xapian-tickets] [Xapian] #455: "Value in posting list too large" error with 1.1.4 (chert and brass, not flint)
Xapian
nobody at xapian.org
Mon Mar 8 16:17:27 GMT 2010
#455: "Value in posting list too large" error with 1.1.4 (chert and brass, not
flint)
---------------------------+------------------------------------------------
Reporter: tack | Owner: olly
Type: defect | Status: new
Priority: normal | Milestone:
Component: Backend-Chert | Version: 1.1.4
Severity: normal | Keywords:
Blockedby: | Platform: All
Blocking: |
---------------------------+------------------------------------------------
Comment(by tack):
The (Python) code that generates the query from step 4 looks like:
{{{
filtered = [re.sub(r"[^\w_']+", '', word) for word in phrase]
qs = [xapian.Query(word, 1, pos+1) for pos, word in enumerate(filtered) if
word]
query = xapian.Query(xapian.Query.OP_PHRASE, qs)
enquire = xapian.Enquire(xapdb)
enquire.set_query(query)
enquire.set_collapse_key(1)
enquire.set_sort_by_relevance()
matches = enquire.get_mset(0, 5)
}}}
If I comment out enquire.set_collapse_key(1), the problem goes away.
Value 1 exists in each document added to the database and is an integer
serialized with xapian.sortable_serialise().
--
Ticket URL: <http://trac.xapian.org/ticket/455#comment:1>
Xapian <http://xapian.org/>
Xapian
More information about the Xapian-tickets
mailing list