Well sure, Solr is no webapp framework. But you can do some things
with the ShowFileRequestHandler, like have static textual content
(like CSS and JavaScript, or just an HTML page) served up. And you
can simply have a Velocity template with static text in it, and map it
as a request handler, so /solr/view.html can get served up from a
dummy request handler with wt=velocity and v.template=view set in
solrconfig.xml, like this:
<requestHandler name="/view.html" class="solr.DumpRequestHandler" >
<lst name="defaults">
<str name="wt">velocity</str>
<str name="v.template">view</str>
</lst>
</requestHandler>
One issue with ShowFileRequestHandler currently is that it cannot
serve up binary content, though. So images are an issue
unfortunately. I think this should be fixed, as there could be binary
data files (an optimized Chinese dictionary, maybe) that you'd want
accessible externally, not just for this fancy view stuff.
So, in summary: HTML handled. Images still an issue.
Erik
On Dec 11, 2009, at 4:49 AM, Lance Norskog wrote:
There is a general problem here in that Solr has no configuration for
content management. There is nowhere to throw in images and html pages
as part of your velocity app either.
On Wed, Dec 9, 2009 at 11:09 PM, Erik Hatcher
<erik.hatc...@gmail.com> wrote:
After I sent that, though, I realized that the core admin is
special in that
it isn't within the context of a single core. I'll have to
research this
and see, but I suspect there may be an issue with using VwR for this
particular handler, as it wouldn't have a solr-home/conf/velocity
directory
to pull templates from.
I'll look into it.
Erik
On Dec 10, 2009, at 7:51 AM, Mattmann, Chris A (388J) wrote:
Nice, Erik!
Cheers,
Chris
On 12/9/09 10:39 PM, "Erik Hatcher" <erik.hatc...@gmail.com> wrote:
Just a note about the hidden gem that I haven't taken as far as I'd
like...
With the VelocityResponseWriter, it's as easy as creating a
Velocity
template (and wiring in VwR in solrconfig, which I'll set up by
default in 1.5). It will even default to the template named
after the
handler name, so all you have to do is &wt=velocity.
Erik
On Dec 10, 2009, at 7:33 AM, Mattmann, Chris A (388J) wrote:
Hi Jason,
Patches welcome, though! :)
Cheers,
Chris
On 12/9/09 10:31 PM, "Shalin Shekhar Mangar"
<shalinman...@gmail.com> wrote:
On Thu, Dec 10, 2009 at 11:52 AM, Jason Rutherglen <
jason.rutherg...@gmail.com> wrote:
I assume there isn't one? Anything in the works?
Nope.
--
Regards,
Shalin Shekhar Mangar.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Chris Mattmann, Ph.D.
Senior Computer Scientist
NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA
Office: 171-266B, Mailstop: 171-246
Email: chris.mattm...@jpl.nasa.gov
WWW: http://sunset.usc.edu/~mattmann/
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Adjunct Assistant Professor, Computer Science Department
University of
Southern California, Los Angeles, CA 90089 USA
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Chris Mattmann, Ph.D.
Senior Computer Scientist
NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA
Office: 171-266B, Mailstop: 171-246
Email: chris.mattm...@jpl.nasa.gov
WWW: http://sunset.usc.edu/~mattmann/
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Adjunct Assistant Professor, Computer Science Department
University of
Southern California, Los Angeles, CA 90089 USA
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
--
Lance Norskog
goks...@gmail.com