[Xapian-tickets] [Xapian] #500: Problem with terms that contain the '\0' character.

Xapian nobody at xapian.org
Tue Aug 3 10:35:00 BST 2010


#500: Problem with terms that contain the '\0' character.
--------------------------------------+-------------------------------------
 Reporter:  versmisse                 |       Owner:  richard
     Type:  defect                    |      Status:  new    
 Priority:  normal                    |   Milestone:         
Component:  Xapian-bindings (Python)  |     Version:  1.2.0  
 Severity:  normal                    |    Keywords:         
Blockedby:                            |    Platform:  All    
 Blocking:                            |  
--------------------------------------+-------------------------------------
 Hello,

 We can store terms with a maximum length of 245 bytes. But visibly, if a
 term contains '\0', they are counted 2 times.

 I don't know if the problem is due to the xapian binding (python) or to
 the xapian core.

 This small snippet of python can reproduce the problem:


 {{{
 from xapian import WritableDatabase, DB_CREATE, Document
 db = WritableDatabase('test_db', DB_CREATE)
 doc = Document()
 doc.add_posting('\x00' * 200, 1)
 db.add_document(doc)
 db.flush()
 }}}


 With an other character '\x01' or \x02', ... this code works without
 problem.

 Thank you by advance for your answer.
 D. Versmisse.

-- 
Ticket URL: <http://trac.xapian.org/ticket/500>
Xapian <http://xapian.org/>
Xapian



More information about the Xapian-tickets mailing list