You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by "Insurance Squared Inc." <gc...@insurancesquared.com> on 2005/12/09 12:57:01 UTC
Cache page, modifying the output
We're putting a php front end on Nuche, have it working for the search
results page by grabbing an xml feed from nuche. However the cache link
is still calling nuche directly, and my developer indicated that the
cache page doesn't seem to be available via xml.
What's the best way for us to take control over the output displayed
when the cache link is clicked from the search results? (we don't need
to modify the actual cached page, just the overall layout - like the top
part of the page that says 'nuche cache'). Do we need to modify the
nuche code directly? Or parse the html, strip out the non-cache text
and insert our own? Neither seem ideal to me.
Alternatively, do we really need to display the cache link? Not sure if
there's a reason for the end user to see this.
General suggestions welcome (we're happy to dig out the specifics
ourselves :) ).
Thanks.
-glenn
Re: Cache page, modifying the output
Posted by Matt Kangas <ka...@gmail.com>.
If you don't have a requirement to show the "cache" link, don't
bother. Then your problem is solved.
Otherwise, the cleanest way to approach this is to write a new
servlet that returns only the cached page, minus Nutch branding. Have
your PHP "cache" page call this similar to the OpenSearchServlet.
That way you can still leave all of the JSP stuff disabled in your
Tomcat instance.
--matt
On Dec 9, 2005, at 6:57 AM, Insurance Squared Inc. wrote:
> We're putting a php front end on Nuche, have it working for the
> search results page by grabbing an xml feed from nuche. However
> the cache link is still calling nuche directly, and my developer
> indicated that the cache page doesn't seem to be available via xml.
>
> What's the best way for us to take control over the output
> displayed when the cache link is clicked from the search results?
> (we don't need to modify the actual cached page, just the overall
> layout - like the top part of the page that says 'nuche cache').
> Do we need to modify the nuche code directly? Or parse the html,
> strip out the non-cache text and insert our own? Neither seem
> ideal to me.
>
> Alternatively, do we really need to display the cache link? Not
> sure if there's a reason for the end user to see this.
>
> General suggestions welcome (we're happy to dig out the specifics
> ourselves :) ).
>
> Thanks.
>
> -glenn
>
--
Matt Kangas / kangas@gmail.com