[Xapian-discuss] Python interface problems

Wojtek Sobczuk wojtek at nemo.pl
Mon Oct 3 12:53:09 BST 2005


Hello,

I'm trying to use xapwrap to index some documents in Xapian, but I get 
the following error.  Any ideas how to fix/circumvent this?  I find 
Xapian the best solution for my problem (indexing 20 million forum 
posts, messages, etc.).

Also, how 'fast' is Xapian?  I want to use it on a heavily loaded site, 
and I would probably generate 10-20 queries per second (but the queries 
would be limited to 1-8 words from a subset of 100-1000 words).  Would 
that work fine on a dual xeon with SCSI RAID 1 drives?

Here's the traceback:

Traceback (most recent call last):
  File "xapsearch.py", line 72, in ?
    _do_index('/home/test/dupa')
  File "xapsearch.py", line 61, in _do_index
    id.index({'ids': ["bulletin", i] + _gentags(), 'data': 'bulletin%d' 
% i})
  File "xapsearch.py", line 39, in index
    self.indexer.index(doc)
  File "/home/test/xapwrap/index.py", line 820, in index
    xapDoc = doc.toXapianDocument(self.indexValueMap)
  File "/home/test/xapwrap/document.py", line 177, in toXapianDocument
    d.add_term(term.value)
  File "/usr/local/lib/python2.4/site-packages/xapian.py", line 230, in 
add_term
    def add_term(*args): return _xapian.Document_add_term(*args)
NotImplementedError: No matching function for overloaded 'Document_add_term'





More information about the Xapian-discuss mailing list