Displaying 8 results from an estimated 8 matches for "db_path".
2012 Aug 13
2
[PATCH] Replace hard-coded PKG_STATEDIR with state_dir setting
...icator.c b/src/replication/replicator/replicator.c
--- a/src/replication/replicator/replicator.c
+++ b/src/replication/replicator/replicator.c
@@ -13,7 +13,6 @@
#define REPLICATOR_AUTH_SERVICE_NAME "replicator"
#define REPLICATOR_DB_DUMP_INTERVAL_MSECS (1000*60*15)
-#define REPLICATOR_DB_PATH PKG_STATEDIR"/replicator.db"
static struct replicator_queue *queue;
static struct replicator_brain *brain;
@@ -32,7 +31,7 @@
struct auth_master_user_list_ctx *ctx;
struct auth_user_info user_info;
struct replicator_user *user;
- const char *username;
+ const char *db_path, *user...
2006 Feb 08
1
xapian-tcpsrv very slow
Hi,
I have been looking at xapian for a project and have so far been very
impressed. I have hit one major problem the final architecture requires
that the web server be a deferent machine from the server that xapian is
installed on. With my test code using local database ($db_path =
"/var/xapain_db/default"; $db = new_database($db_path);) a query takes
around 0.012 seconds on the same machine with the connection changed to use
tcp ($db = remote_open('127.0.0.1',3055);) the same query takes 129 seconds
or times out. I am currently trying to follow t...
2013 Sep 02
2
having trouble with prefixes
...3741A4A1C2B8EC0E7 T:jpg
The terms were added with lines like this:
doc.add_term(string("P:") + path);
Problem is, I can't seem to run a query that returns the document using
any of the terms. Here is the outline of the code that runs the queries
I'm trying to run:
Database db(db_path.string());
QueryParser queryparser;
Stem stemmer("english");
//queryparser.set_stemmer(stemmer);
queryparser.set_database(db);
queryparser.add_prefix("type", "T");
queryparser.add_prefix("md5sum", "Q");
queryparser.add_prefix("path"...
2011 Aug 10
0
xapian enquire.set_docid_order(Xapian::Enquire::DESCENDING so slow!
...ire.DESCENDING)" , but this method seems a little slow . when i remove "enquire.set_docid_order(enquire.DESCENDING)" it run much faster .
how can i fetch the newest 10 results as fast as possible?
search.py
#-*- coding: utf-8 -*-
import xapian
import sys,time
t1 = time.time()
db_path = sys.argv[1]
terms = sys.argv[2:]
try:
database = xapian.Database(db_path)
terms = ' '.join(terms)
qp = xapian.QueryParser()
qp.set_database(database)
qp.set_default_op(0) #0:OP_AND; 1:OP_OR default
query = qp.parse_query(terms)
enquire = xapian.Enquire(database)
enquir...
2019 Jan 14
2
[FTS Xapian] Beta release
...HPFyJQQAADYqDFA>: Debug: fs: root=/var/spool/mail/iwascoding/paul/mdbox, index=, indexpvt=, control=, inbox=, alt=
Jan 14 09:26:08 mail dovecot: indexer-worker(paul at iwascoding.com <mailto:paul at iwascoding.com>)<16777><IKpfOqBHPFyJQQAADYqDFA>: FTS Xapian: Partial=2, Full=20 DB_PATH=/var/spool/mail/iwascoding/paul/mdbox/xapian-indexes
Jan 14 09:26:08 mail dovecot: indexer-worker(paul at iwascoding.com <mailto:paul at iwascoding.com>)<16777><IKpfOqBHPFyJQQAADYqDFA>: Debug: quota: quota_over_flag check: quota_over_script unset - skipping
Jan 14 09:26:08 mail do...
2019 Jan 14
0
[FTS Xapian] Beta release
...ding.com)<16777><IKpfOqBHPFyJQQAADYqDFA>: Debug: fs: root=/var/spool/mail/iwascoding/paul/mdbox, index=, indexpvt=, control=, inbox=, alt=
> Jan 14 09:26:08 mail dovecot: indexer-worker(paul at iwascoding.com)<16777><IKpfOqBHPFyJQQAADYqDFA>: FTS Xapian: Partial=2, Full=20 DB_PATH=/var/spool/mail/iwascoding/paul/mdbox/xapian-indexes
> Jan 14 09:26:08 mail dovecot: indexer-worker(paul at iwascoding.com)<16777><IKpfOqBHPFyJQQAADYqDFA>: Debug: quota: quota_over_flag check: quota_over_script unset - skipping
> Jan 14 09:26:08 mail dovecot: indexer-worker(paul a...
2019 Jan 14
3
[FTS Xapian] Beta release
Hi,
I installed and tested your version, but the indexer process crashes reproducible with the following command after about 2000 messages were indexed:
doveadm index -u paul at iwascoding.com -q \*
Jan 14 09:26:15 mail dovecot: indexer-worker(paul at iwascoding.com)<16777><IKpfOqBHPFyJQQAADYqDFA>: Debug: Mailbox sent: UID 2038: Opened mail because: fts indexing
Jan 14 09:26:15 mail
2019 Jan 14
0
[FTS Xapian] Beta release
...rt that includes the "init" of the plugins
(something similar as below) ?
WHich version of Xapian are you on ?
Jan 14 09:10:04 gjserver dovecot[31082]:
indexer-worker(admin at grosjo.net)<14725><apZfHexRPFy9QAAA0thIag:UL+TNOxRPFyFOQAA0thIag>:
FTS Xapian: Partial=2, Full=20
DB_PATH=/data/mail/grosjo.net/admin/xapian-indexes
Jan 14 09:10:04 gjserver dovecot[31082]:
indexer-worker(admin at grosjo.net)<14725><apZfHexRPFy9QAAA0thIag:UL+TNOxRPFyFOQAA0thIag>:
FTS Xapian : Mailbox Mail : Last UID=815055
Jan 14 09:10:04 gjserver dovecot[31082]:
indexer-worker(admin at gro...