[Xapian-discuss] omega url fetch
Michael A. Lewis
MAL at ICGINC.COM
Thu May 17 15:12:39 BST 2007
My report program is written in PHP. I can shell out using the system function as with: system('/httpd/cgi-bin/omega FMT=test DB=default P=linux HITSPERPAGE=1000"); and then process the output. I thought there was a quick way to grab the URL using the document ID (or a query) but couldn't locate it in the documentation.
-Michael Lewis
________________________________
From: Olly Betts [mailto:olly at survex.com]
Sent: Thu 5/17/2007 9:56 AM
To: Michael A. Lewis
Cc: xapian-discuss at lists.xapian.org
Subject: Re: [Xapian-discuss] omega url fetch
On Thu, May 17, 2007 at 09:40:27AM -0400, Michael A. Lewis wrote:
> I have a DB built by omindex and searched using omega that is working
> just great. I now have a requirement to search a related MySQL DB and
> correlate the records in there with the Xapian records for some
> reports. The common link is the URL of the page. How do I retrieve the
> URL from the Xapian DB? I run a query, say for "linux" and get my list
> of doc ids. What next?
The simplest way would be a custom OmegaScript template containing just
this:
$hitlist{$field{url}
}
Save it into "templates/urls" and run Omega with `FMT=urls'.
Cheers,
Olly
More information about the Xapian-discuss
mailing list