Brian Burton
2010-Dec-01 09:23 UTC
[Xapian-discuss] Are stub databases still supported in 1.0.21?
I have the following setup: Databases: /var/lib/xapian-omega/data/db1 /var/lib/xapian-omega/data/db2 /var/lib/xapian-omega/data/db3 Stub: /var/lib/xapian-omega/data/default The stub file "default" is a text file that contains the following: auto /var/lib/xapian-omega/data/db1 auto /var/lib/xapian-omega/data/db2 auto /var/lib/xapian-omega/data/db3 Using the following returns nothing: /usr/lib/cgi-bin/omega/omega 'DB=default' 'P=searchphrase' 'FMT=xml' While the following returns hundreds of results: /usr/lib/cgi-bin/omega/omega 'DB=db1' 'P=searchphrase' 'FMT=xml' Neither return any errors. I'm already delving into the core code to find the problem but I would like to confirm that it's not a simple misconfiguration. Any advice would be appreciated. Thanks, Brian
Richard Boulton
2010-Dec-01 12:23 UTC
[Xapian-discuss] Are stub databases still supported in 1.0.21?
Stub databases are still supported: I can't see any obvious reason that what you're doing wouldn't work. -- Celestial Navigation Limited, incorporated in England & Wales (registration number 06978117), registered office address: 58 Kingsway, Duxford, Cambridgeshire, CB224QN, UK.
Olly Betts
2010-Dec-01 22:01 UTC
[Xapian-discuss] Are stub databases still supported in 1.0.21?
On Wed, Dec 01, 2010 at 10:23:37AM +0100, Brian Burton wrote:> Using the following returns nothing: > /usr/lib/cgi-bin/omega/omega 'DB=default' 'P=searchphrase' 'FMT=xml' > > While the following returns hundreds of results: > /usr/lib/cgi-bin/omega/omega 'DB=db1' 'P=searchphrase' 'FMT=xml' > > Neither return any errors. I'm already delving into the core code to find > the problem but I would like to confirm that it's not a simple > misconfiguration. Any advice would be appreciated.There are some tips here for investigating such cases in the FAQ: http://trac.xapian.org/wiki/FAQ/NoMatches It sounds like a Xapian bug from the information provided so far, but I don't know what might be going on. Cheers, Olly