Displaying 20 results from an estimated 200 matches similar to: "Writing with xapian-tcpsrv and php"
2009 Jul 23
1
tcp deamon and remote connection
Hi,
I'm trying to use xapian from php script with TCP daemon.
I started TCP daemon: xapian-tcpsrv --port 5050 --writable /path-to-db
When I trying to get access to it within my php-script with
remote_open_writable("localhost", 5050) or remote_open("localhost",
5050) apache fails with signal 11:
dev kernel: pid 35923 (httpd), uid 80: exited on signal 11
TCP demon also
2010 Mar 19
2
xapian-tcpsrv php in real fastcgi loop
Hello,
i'm fresh new to xapian (and impressed.. fast, faster, xapian). And so i have
a problem with no solution at the moment.
I have a webapp based on php5 in a special fastcgi loop environment (thus
there are some loops spawned handling multiple requests so there is no need
for php to recreate classes and Objects all the time).
I implemented a xapian wrapper class to access a remote
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
2023 Mar 30
1
Having trouble with php8 bindings
On Thu, Mar 30, 2023 at 04:42:41AM +0100, John Handelaar wrote:
> It appears that I can't use anything in PHP8.2 if the PHP file from
> which I want to access xapian contains a namespace declaration,
> because the PHP functions themselves cannot be found.
You need to tell PHP to look in the root namespace, e.g.:
$test = new \XapianWritableDatabase('searchdb');
Another
2008 Apr 20
1
Exception DatabaseCorruptError under php
Hello,
I'm having a litle issue with Xapian-1.0.6 with php bindings under
php5 when trying to add a new document it throws:
Fatal error: Uncaught exception 'Exception' with message
'DatabaseCorruptError: Failed to unlink
/var/lib/xapian/trade.ar/termlist.baseA: No such file or directory'
in /usr/share/php5/xapian.php:1140
Stack trace:
#0 /usr/share/php5/xapian.php(1140):
2010 Jun 16
2
class methods from module where active rec is involved
I have a module as shown below and when I extend an active record to
use it, I can not access the
primary_key method. In a simple test program using a similar approach
where active record is not involved, access to the class methods seems
to work ok. What can I do to make this work or so that I can access
the class methods ?
##################################
require
2007 May 15
1
Document ID 0 is invalid... but not always...
Note: this is rather long and not very important and I don't want to
prevent the team from releasing version 1.0, so go on reading only if
you have too much free time !!! ;-)
0 is not a valid document ID, never, ever, but I just found a special
case in which xapian will create a record and return 0 for the newly
created record.
In fact, I was "hacking", trying to store metadata
2007 Mar 14
2
login authentication
Hi everyone, i used postfix, dovecot and mysql. I have virtual users and
domains. I have this configuration in dovecot-mysql.conf:
db_host = localhost
db_port = 3306
db_unix_socket = /var/run/mysqld/mysqld.sock
db = postfix
db_user = postfix
db_passwd = bscidth46
db_client_flags = 0
default_pass_scheme = CRYPT
password_query = SELECT password FROM mailbox WHERE username = '%u'
user_query
2007 Dec 13
2
backing up a database by locking while backup program runs
Hi.
I want to back up a Xapian database. If I copy the database directory
and its contents using (for instance) rsync, and I know that throughout
the duration of the rsync process another process has had the database
open for writing, but has not actually made any modifications, can I
be sure that, on completion of the rsync process, I have a copy of the
database which is consistent and fully
2010 Oct 21
2
In-memory databases vs PHP Bindings
I can't quite connect the dots on this, perhaps someone can help. I'm
simply trying to create an in-memory database comprising a single document,
so that I can run a load of queries against it and see if any of them match
the new document (this is to enable users to have 'subscriptions' to saved
searches and be alerted every time a new item is published that matches
their
2008 Jan 16
3
question about mysql authentication
Hi list,
i use dovecot-1.0-1.2.rc15.el5 installed from rpm
centos 5.0
I cant get mysql authetication working: this is my /etc/dove-mysql.conf
######dove-mysql.conf should look like this##########
#db_host = 127.0.0.1
#db_port = 3306
db = postfix
db_user = postfix
db_passwd = secret
db_client_flags = 0
default_pass_scheme = PLAIN
password_query = SELECT password FROM mailbox WHERE username
2015 Mar 11
2
stub-file and get_doccount
Hello,
i switched from one big index to a stub file with many indexes and running
into a problem.
i have a tool to fetch a random document via:
get_doccount
random id up to get_doccount
get_document with that id
after changing to stub file this failes. Is there a nice way to get a
random document from a stub file?
?MfG?
Felix Ostmann
2006 Apr 26
2
mysql authentication problems
Hello all..
I'm trying to configure dovecot do athenticate using mysql, but I?m
having some troubles...
After configuring the mysql athentication in dovecot-mysql.conf and in
dovecot.conf, when I try to login I get this mesage in my logs:
Dovecot-auth: MySQL: Can't connect to database dovecot: Can't connect to local MySQL server through socket '/var/tmp/mysql.sock' (2)
2006 May 20
2
xapian-tcpsrv need to reopen database?
Hi, I'm adapting the omega (in a Python way ;) to do search across multiple
remotes database, for now, I have only one xapian-tcpsrc running, but I have
documents being inserted at the same time, so (like I have readed in others
e-mails) the xapian-tcpsrc throw the following message:
Connection from 192.168.0.101, port 64161
Got exception DatabaseModifiedError: The revision being read has
2023 Mar 30
1
Having trouble with php8 bindings
Hello
It appears that I can't use anything in PHP8.2 if the PHP file from
which I want to access xapian contains a namespace declaration,
because the PHP functions themselves cannot be found.
(xapian 1.4.22, php8.2, debian bullseye. xapian.so is confirmed to be
loaded after manually compiling 1.4.22 packages for libxapian, and
compiling the bindings from original source, because it's
2023 Mar 30
1
Having trouble with php8 bindings
On Thu, 30 Mar 2023 at 04:58, Olly Betts <olly at survex.com> wrote:
>
> Another option is to import the things you want with `use` and then
> you can just use `XapianWritableDatabase` without to prefix it with
> `\`. To do that add this after your `namespace literallyanynamespace;`
> line:
>
> use \XapianWritableDatabase;
Thank you very much.
This then (because
2010 Sep 01
1
DatabaseLockError: REMOTE: unable to get write lock
Hi,
I'm using xapian(1.2.2) python interface to connect remote xapian-tcpserv daemon.
I'm starting the daemon as given below:
xapian-tcpsrv --port 9100 --interface 127.0.0.1 --writable ./xapiandb/
and in script.py:
import xapian as xa
db = xa.remote_open_writable('localhost', 9100)
# other stuff
# ...
script is a long running program, and when i try to run
2005 Mar 28
4
Problem with bindings and MinGW
Message body follows:
Hi,
I'm interested in Xapian as a possible search engine for a
Python project I'm developing. The reason why I write to you,
is that I saw that you've been fixing bugs... so please excuse
me if I'm bothering you: I saw no other contact on the
xapian.org web pages.
I've been spending the last two days trying to set up Python
bindings for the library
2005 Mar 28
4
Problem with bindings and MinGW
Message body follows:
Hi,
I'm interested in Xapian as a possible search engine for a
Python project I'm developing. The reason why I write to you,
is that I saw that you've been fixing bugs... so please excuse
me if I'm bothering you: I saw no other contact on the
xapian.org web pages.
I've been spending the last two days trying to set up Python
bindings for the library
2008 Aug 19
1
Fwd: Strange error with PHP bindings [some more details]
Finally I noticed something suspect:
[2008-08-19 09:11:25] [DEBUG] DAO_Articles::add_xindex() - document added id
: 255, title : Gli anelli con sigil...
this is a debug line from my application, add_xindex function simply adds
the document to xapian database, the error always happens when I try to add
an article with id = 255, this can not be a casualty (I also tried to change
the order of