The Xapian PHP extension is refusing to compile on my system, is there any way to force it, or can someone provide the extension compiled for FreeBSD 5.4? Please?
On Sat, Jul 30, 2005 at 10:33:38AM -0400, Jacob Mahoney wrote:> The Xapian PHP extension is refusing to compile on my system, is there > any way to force it, or can someone provide the extension compiled for > FreeBSD 5.4? Please?If you gave us the error messages you're seeing, we might be able to suggest things to try to get it building. Cheers, James -- /--------------------------------------------------------------------------\ James Aylett xapian.org james at tartarus.org uncertaintydivision.org
James Aylett
2005-Jul-31 10:23 UTC
[Xapian-discuss] Re: [Xapian-devel] [PHP5] Xapian not compiling
On Sat, Jul 30, 2005 at 10:06:41PM -0400, Jacob Mahoney wrote:> Yes, the php-config --version command returned the following: 5.0.3. I > would prefer that the PHP extension for Xapian be built, even if I have > to force it.You'd have to install PHP4.> But, as an alternative, I am willing to install another scripting > language on my server just for the search feature, or even use some > form of dedicated CGI backend as long as phpBB can manage the > documents in the Xapian search system's database (it would be really > cool to have it use just the phpbb_posts_text table for its > documents).You can't use a relational database with Xapian - what you need to do is to install hooks into the db management code in phpBB to update the Xapian database. Probably the easiest thing to do is to grab omega as well as Xapian, and use that with an XML format for the search bit, so phpBB just has to parse XML (which is pretty easy) to display search results. For keeping the Xapian database up to data, you can create a textual representation of the documents, and a scriptindex script to add/replace/remove them, then call scriptindex from phpBB (using system(), exec() or your preferred method of forking another process). scriptindex is part of omega, and has reasonable documentation - although I recommend you read the documentation twice through and have a quick play before asking questions, as it has two different input file formats (one for data, one to tell it out to use the data), which can confuse people at first :-)> Any help at all in getting Xapian working on a phpBB forum powered > by PHP5 would be loved. And at over 10,000 posts, the search system > provided by phpBB is starting to lag the system. Not good on a > fantasy roleplaying community.:) J -- /--------------------------------------------------------------------------\ James Aylett xapian.org james@tartarus.org uncertaintydivision.org