Here's an example of a Nutch-based site that has both /search.jsp
and /opensearch interfaces available. AFAIK, it accepts all of the
same parameters that the stock Nutch setup accepts.
http://www.mozdex.com/search.jsp?query=miserable&failure
http://www.mozdex.com/opensearch?query=miserable&failure
(not my site, just something i saw on the list recently...)
I'll try to dig up an old version of my PHP search page for you,
before it sprouted a lot of features. The current version isn't much
use against a stock Nutch setup.
--Matt
On Nov 8, 2005, at 10:27 PM, Victor Lee wrote:
Hi,
Thanks. Do you have more detail? I looked at the
html source of your site, but it doesn't show any clue
as usual since all the stuff are in the php file which
I can't see. Do you know where can I find more info
about using opensearch with Nutch? Actually, I am not
writing a search page, I am still using Nutch search
,but I am using the search result from Nutch to do
further processing in php. But the opensearch thing
maybe useful as well.
Many thanks.
--- Matt Kangas <[EMAIL PROTECTED]> wrote:
Victor,
It's very easy to use a PHP front-end with Nutch.
Run Tomcat on the
same box as PHP. Then write a PHP search page that
makes an HTTP call
to "http://localhost/opensearch" for the actual
search operation.
Parse the resulting XML (RSS 2.0) with
xml_parse_into_struct() and
display.
I'm using this setup on http://www.busytonight.com
and it works great.
--Matt
On Nov 8, 2005, at 6:21 PM, Victor Lee wrote:
Hi,
I am using PHP in frontend, and I just realized
that
Nutch is using Tomcat and JSP. Did anyone try to
use
PHP instead of Tomcat and JSP? How hard is it?
Any
code samples?
Many thanks.
--
Matt Kangas / [EMAIL PROTECTED]
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
--
Matt Kangas / [EMAIL PROTECTED]