Hello,

We have a front application server that uses Solr to search our contents.

If the front application calls Solr with /select but missing q parameter,
Solr returns a stack trace with its response body, while we expect
XML response with an error message (& the stack trace in the XML).
Is it a feature?

If so, is the front server responsible about checking required params
before requesting to Solr, correct?

I've found a similar issue in JIRA:

an empty query string in the admin interface throws an exception
http://issues.apache.org/jira/browse/SOLR-48

but the solution was that the front checked q parameter before sending.

We are hoping Solr returns a readable response produced by Response Writer
even if the front server sends wrong request to Solr,
but if it is a feature, we will validate params at the front.
We'd like to just confirm that.

Thank you,

Koji

Reply via email to