search for: database_dir

Displaying 8 results from an estimated 8 matches for "database_dir".

2006 Jul 14
1
(Solved) Re: 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 fl...
2011 Apr 21
1
How to Retrieve content of the document?
...have just started using xapian and I may sound like a noob. I want to know how i can access the content of the document retrieved while searching. I have used the code found on this mailing list itself to index my database. #!/usr/bin/perl -w use strict; use Search::Xapian; use File::Find; my $DATABASE_DIR = '/home/rohit/Desktop/SET/DB'; my $db = Search::Xapian::WritableDatabase->new($DATABASE_DIR, Search::Xapian::DB_CREATE_OR_OPEN) or die "can't create write-able db object: $!\n"; my $dir = shift; if (!$dir) { print "usage: index_data.pl <dir>\...
2004 Sep 01
1
Omega cgi question
IRIX 6.5.22, compiled omega.0.8.1 with native MIPS compiler. omega.cgi isn't running from apache. From the log: [Wed Sep 1 10:04:36 2004] [error] [client 198.149.32.31] malformed header from script. Bad header=Caught unknown exception: /var/www/cgi- bin/omega.cgi This is with a url of http://<machine>/cgi-bin/omega.cgi?DB=/open/ When I run it from the command line with no
2015 Jul 26
1
Get term from document by position
...== Begin of the modified test.cpp file========= #include <xapian.h> #include <iostream> #include <string> #include <cstdlib> // For exit(). #include <cstring> #include <fstream> class MyText { public: std::string text_str; void set_string(); }; std::string database_dir="db_dir"; std::string query_string="extracellular microbe"; int main(int argc, char **argv) { // indexing Xapian::WritableDatabase db_w(database_dir, Xapian::DB_CREATE_OR_OVERWRITE); MyText text_to_index; text_to_index.set_string(); Xapian::TermGenerator index...
2012 Dec 30
1
combining databases for omega
...read from multiple databases, but I'm not sure how to go about this. I have three databases created using omindex, currently located at /var/lib/xapian-omega/data/share, /var/lib/xapian-omega/data/users, and /var/lib/xapiax-omega/data/management The quickstart guide says that in omega.conf database_dir should point to the directory containing my database(s), but if I set it to /var/lib/xapian-omega/data it only looks for the default directory. Can I configure omega to search multiple databases or should I use something like xapian-compact to merge the three into one? -- Chris Purves Visit...
2009 Jun 20
3
omindex hangs while scanning
...only a few words it never finishes: under msys: cd \opt\bin\ omindex --db "D:/develop/apache22/cgi-bin/omega/data/default" --url /book "D:/develop/apache22/htdocs" the omega.conf is in the same directory and looks like: # Directory containing Xapian databases: #database_dir /var/lib/omega/data database_dir D:\develop\apache22\cgi-bin\omega\data # Directory containing OmegaScript templates: # template_dir /var/lib/omega/templates template_dir D:\develop\apache22\cgi-bin\omega\templates # Directory to write Omega logs to: #log_dir /var/log/omeg...
2006 Aug 06
1
How to use omega to search remote back end?
...0 Jul 12 21:40 value.DB -rw-r--r-- 1 oscar oscar 13 Jul 12 21:40 value.baseA -rw-r--r-- 1 oscar oscar 14 Jul 12 21:40 value.baseB oscar@epsilon:/svr/xapian$ xapian-tcpsrv --port 33333 /svr/xapian/beta Opening server on port 33333... epsilon:/svr/xapian# cat /etc/omega.conf database_dir /svr/xapian/stub template_dir /var/lib/xapian-omega/templates log_dir /var/log/xapian-omega cdb_dir /var/lib/xapian-omega/cdb epsilon:/svr/xapian# cat stub remote localhost:33333 epsilon:/svr/xapian# strace /usr/lib/cgi-bin/omega/omega 'P=pda' 'FMT=xml2' execve("/usr/lib/cgi-...
2011 Oct 13
1
Database `default' couldn't be opened
...N_CONFIG=/usr/local/bin/xapian-config - make - make check - make install After completed the above steps cd omega-1.2.7 cp omega /usr/lib/cgi-bin/omega.cgi cp omega.conf /usr/lib/cgi-bin/ chmod 755 /usr/lib/cgi-bin/omega.cgi Edit the file (omega.conf) in "/usr/lib/cgi-bin/omega.conf" database_dir /var/lib/omega/data template_dir /var/lib/omega/templates log_dir /var/log/omega cdb_dir /var/lib/omega/cdb you'll have to create the missing directories mkdir -p /var/lib/omega/data mkdir /var/lib/omega/templates mkdir /var/lib/omega/cdb mkdir /var/log/omega And copy the templates to new di...