Hi,

I have an application which throws both query strings and query
filters at dismax.  I discovered that a NPE is thrown if an empty
query string is passed.

1) This should probably be a SolrException(400, "Missing queryString")

2) If the user specifies a filter, the query still makes sense.
Perhaps for queries that have fq but not q, dismax should use a
MatchAllDocsQuery() and a filter.  I suspect this may be a problem,
because although I'm not familiar with it, the potential performance
implications of something that matches all documents makes my stomach
churn.  Perhaps it would be better to detect this case before reaching
solr, and use a StandardRequestHandler with the filters as a lucene
query?

cheers,
-Mike

Reply via email to