[Xapian-discuss] Using Omega and/or Xapian and how to get started

F. Bos f.bos32 at chello.nl
Fri Aug 5 17:07:27 BST 2005


Hi James,

Thanks for the info, really appreciate it. I'm starting to understand things
a little better now. I think for my purpose it will be the best option to
call omega from PHP. However I can't figure out how exactly to do this.
Let me start with putting new documents into the Xapian database. As you
advised I will try to update the Xapian database immediately after updating
the Mysql database. You suggest to do this using scriptindex input files.
I've read the document on scriptindex but scriptindex input files get little
attention in that. I don't think I'm getting it right. If I'd like to add
boolean search possibilities and weight would I create a file like this?:
id=ghq147 boolean=Q unique=Q
title=Sample Record weight=3
value=This is a multi-line
=value.  Note how each newline
=is escaped. boolean=XTEST    
format=HTML
And how can I index probabilistically when using scriptindex files? I also
don't see any examples of how to call Omega from PHP so that Omega runs the
file and updates the Xapian db. How do I get Omega to process a scriptindex
file?
On the other hand I also don't quite understand how to call Omega from PHP
so that it'll produce an output file (in XML as you suggested) for a certain
query. Do I need to make an Omega script template that generates the file?
And how would I call this script from within PHP?

Are there any examples available of the way that PHP interacts with Omega? I
think I would be able to understand this a lot better if I had some examples
of a PHP script that generates a scriptindex file and gets Omega to process
it and an example of PHP requesting Omega to produce an output file for a
query. I would be able to build from there I guess. Is there anyone that is
willing to share some basic code concerning this matter or anyone that knows
where to find such examples? I did a little web searching but I didn't find
any examples of much use to me :(
Thanks,
Floris  






More information about the Xapian-discuss mailing list