: I am using a servlet filter to alter the query parms sent to the solr , : now I have a problem where I want to take some extra action (like drop some : query terms or filters ) if the current query returns no reults.
FWIW: you're probably better off implementing this as a plugin -- either as a SearchComponent or a whole RequestHandler : How can i efficiently get the count of the results for a specified query , : so that i can take an informed decision in the servlet filter. SolrIndexSearcher.getDocSet(yourQuery).size(); -Hoss