Re: Reading a prameter set in browser in request handler

2016-10-02 Thread Walter Underwood
We have a different problem, then. Accessing Solr directly from the web is a very, very bad idea. Solr is not designed for hostile web access. I’m glad to share with you a simple command that will delete all the documents in your index. Works great. So step #1 is to put some kind of server betw

Re: Reading a prameter set in browser in request handler

2016-10-02 Thread Mark Robinson
Thanks much Alex! Your pointer was helpful. Thanks! Anil. On Sun, Oct 2, 2016 at 12:28 PM, Alexandre Rafalovitch wrote: > You've got Parameter Substitution: > https://cwiki.apache.org/confluence/display/solr/Parameter+Substitution > > I think this should do the trick. Perhaps combined with swit

Re: Reading a prameter set in browser in request handler

2016-10-02 Thread Alexandre Rafalovitch
You've got Parameter Substitution: https://cwiki.apache.org/confluence/display/solr/Parameter+Substitution I think this should do the trick. Perhaps combined with switch query parser as https://cwiki.apache.org/confluence/display/solr/Other+Parsers#OtherParsers-SwitchQueryParser (like in an examp

Re: Reading a prameter set in browser in request handler

2016-10-02 Thread Mark Robinson
Thanks Alex for the reply. Yes. in this context I want to determine the weather of the country passed from browser which will go into another function query. If I do the above directly from the browser it works great. I am trying to move this to the requesthandler so that I need to pass only the

Re: Reading a prameter set in browser in request handler

2016-10-02 Thread Alexandre Rafalovitch
The variable substitution in the solrconfig.xml happens when that file is loaded, right at the start of core initialization. Your request variable comes much later. I don't think you can expand it this way. Could you explain a bit more what you are trying to achieve in business terms. E.g. 'weathe

Re: Reading a prameter set in browser in request handler

2016-10-02 Thread Mark Robinson
Hi, While copy pasting correcting a typo. I pass a parameter *&country=USA* from the browser as part of my query. (I have fields *weather_USA*, *weather_UK* etc... in my document). How do I retrieve the parameter "country" in my requesthandler. I tried in my requesthandler:- countr