Hi Hoss,
my config has definately not changed and it worked with 3.6 and 3.6.1.
Yes I have a custom plugin and if q was empty with 3.6 it picked automatically
q.alt from solrconfig.xml.
This all was done with params.get()
With 4.x this is gone due to some changes in DefaultSolrParams(?).
Which
with params.get()
With 4.x this is gone due to some changes in DefaultSolrParams(?).
Which is now the method to get q from params and have an automatic fallback
to q.alt?
Bernd
: I use it like this:
: SolrParams params = req.getParams();
: String q = params.get(CommonParams.Q).trim
Dear list,
after going from 3.6 to 4.0 I see exceptions in my logs.
It turned out that somehow the q-parameter was empty.
With 3.6 the q.alt in the solrconfig.xml worked as fallback but now with 4.0
I get exceptions.
I use it like this:
SolrParams params = req.getParams();
String q =
: I use it like this:
: SolrParams params = req.getParams();
: String q = params.get(CommonParams.Q).trim();
:
: The exception is from the second line if q is empty.
: I can see q.alt=*:* in my defaults within params.
:
: So why is it not picking up q.alt if q is empty?
Youre talking about