I am sorry I broke the reply thread, but your response didn't get to my mailbox, I saw it on GMANE.<br><br>Olly Betts <olly <at> <a href="http://survex.com">survex.com</a>> writes:<br><br>> <br>> The search script looks plausible. I think if you actually add some
<br>> postings it'll all start to work.<br>> <br>> Cheers,<br>> Olly<br>> <br><br>Thanks for the pointers, according to the delve tool I am getting terms added<br>from the add_posting() and the data is there, but I can't get the search to
<br>work. Here is my REALLY simple search since I only want to search on a single term!<br><br>#!/usr/bin/python<br>import sys<br>import xapian<br><br>if len(sys.argv) < 3:<br> print >> sys.stderr, "usage: %s <path to database> <search terms>" %
sys.argv[0]<br> sys.exit(1)<br><br>try:<br> database = xapian.Database( sys.argv[1] )<br><br> enquire = xapian.Enquire(database)<br> query = xapian.Query( sys.argv[2] )<br> print "Performing query `%s'" %
query.get_description()<br><br> enquire.set_query(query)<br> matches = enquire.get_mset(0, 10)<br><br> print "%i results found" % matches.get_matches_estimated()<br> for match in matches:<br> print "ID %i %i%% [%s]" % (match[
xapian.MSET_DID],<br>match[xapian.MSET_PERCENT], match[xapian.MSET_DOCUMENT].get_data())<br><br>except Exception, e:<br> print "Exception: %s" % str(e)<br> sys.exit(1)<br><br>Here is what delve tells me:<br>
<br>>delve -r 999 -d /tmp/index<br>Data for record #999:<br>/wfs/R/t/3/Rt3oxJib36zNefmMEqJ9FVNyCUE=/SecUpd2005-006Ti.info/d647d4a0-57c0-11da-be78-080020b7eac9<br><br>Term List for record #999: d647d4a0-57c0-11da-be78-080020b7eac9
<br><br>and here is what my searcher.py program tells me:<br><br>>searcher.py /tmp/index d647d4a0-57c0-11da-be78-080020b7eac9<br>Performing query `Xapian::Query(d647d4a0-57c0-11da-be78-080020b7eac9)'<br>0 results found
<br><br>any ideas what I am missing?<br>