thanks Hoss,

once again.

-umar


On Sat, Jun 14, 2008 at 4:06 AM, Chris Hostetter <[EMAIL PROTECTED]>
wrote:

>
> : 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
>
>

Reply via email to