On 10/24/2012 8:05 AM, Marcelo Elias Del Valle wrote:
I saw there is some documentation in solr wiki for SearchHandler and
VelocityResponseWriter, which I am trying to digest. However, I saw there
are some configuration fields that aren't there, like this QF field. I am
not sure on how to customize... Should I use only my custom fields there?
Marcelo, the /browse handler that comes with the Solr example is just
that -- an example. It's not intended for production use without a lot
of customization, and definitely not intended to be directly available
to 'regular' people or the Internet. I'm not saying it can't be a
useful tool, but nothing in Solr is hardened against abuse, so it should
not be directly exposed to attack.
Also, the /browse handler configuration is highly tied in with the
schema.xml in the example. If you change the schema, you'll probably
have to also perform surgery on the SolrItas config, which will likely
require an understanding of Velocity. For real help with Velocity,
you'd need to consult other resources. Here's some stuff that I was
able to find:
http://velocity.apache.org/engine/releases/velocity-1.5/overview.html
http://velocity.apache.org/engine/releases/velocity-1.5/user-guide.html
http://velocity.apache.org/engine/releases/velocity-1.5/developer-guide.html
If you choose to customize the Velocity config and have questions about
the Solr pieces of the puzzle, then this list can probably give you the
answers you need.
Generally speaking, rather than use /browse, you'll want to access Solr
directly from whatever application you have that faces your users,
either using constructed URLs and a standard http library, or a
solr-specific library that gives you the tools to tell it what you want
and handles the URL construction for you. For Java, that would be
SolrJ. There are also solr libraries for other languages.
Thanks,
Shawn