oscaruser@programmer.net
2006-Jul-14 23:30 UTC
(Solved) Re: [Xapian-discuss] How to configure omega.cgi to search multiple flint dbs?
Folks, OK found it, omega.cc looks for multiple DB definitions and adds it to the search list. If the dbs are only one directory lower (e.g. not in default as in beta/default, but only "beta"), then modifying database_dir setting as follows will work: database_dir /svr/hda1/xapian then, ./omega.cgi 'P=pda' FMT='xml' DB="beta" DB="gamma" DB="delta" HITSPERPAGE=1 ...provides a roll up of the queries, and summaries results. (Super!) Thanks, OSC "The only way to fly!"> ----- Original Message ----- > From: oscaruser@programmer.net > To: xapian-discuss@lists.xapian.org > Subject: [Xapian-discuss] How to configure omega.cgi to searching multiple flint dbs? > Date: Fri, 14 Jul 2006 13:52:36 -0800 > > > Folks, > > I have three separate xapian indicies/dbs that I want Omega.cgi to > search. Searching only one works OK, but I need to search three > different dbs, and hopefully omega will combine the results and > return a single feed. In my omega.conf I have : > > database_dir /svr/hda1/xapian/beta > template_dir /svr/hda1/xapian/templates > log_dir /var/log/xapian > cdb_dir /var/log/xapian/cdb > > I want to specify multiple dbs as in: > > database_dir /svr/hda1/xapian/beta > database_dir /svr/hda1/xapian/gamma > database_dir /svr/hda1/xapian/delta > > So that when I run > > ./omega.cgi 'P=pda' FMT='xml' DB="default" HITSPERPAGE=1 > > It queries the flint dbs beta, gamma, and delta. Since these dbs > are large (~20GB) xapian-compact could combine it but take too > long. What is the config file setting or omega switch I can use to > query all three? > > Thanks, > -OSC-- ___________________________________________________ Play 100s of games for FREE! http://games.mail.com/
Olly Betts
2006-Jul-14 23:45 UTC
(Solved) Re: [Xapian-discuss] How to configure omega.cgi to search multiple flint dbs?
On Fri, Jul 14, 2006 at 02:29:27PM -0800, oscaruser@programmer.net wrote:> ./omega.cgi 'P=pda' FMT='xml' DB="beta" DB="gamma" DB="delta" HITSPERPAGE=1You can also specify multiple databases in one DB parameter using this syntax: DB=beta/gamma/delta Another approach is to use a "stub" database, which is just a text file listing one or more databases, so you can then just refer to a pre-specified combination of databases using DB=default (or DB=whatever) in Omega. The stub database format is documented here: http://www.xapian.org/docs/overview.html Cheers, Olly
Maybe Matching Threads
- How to use omega to search remote back end?
- xapian-compact seg faulting & Re: Error msg xapian-compact: The revision being read has been discarded - you should call Xapian::Database::reopen() and retry the operation
- omindex hangs while scanning
- Database `default' couldn't be opened
- Omega: behavior msize when collapsing results