Re: how to get the count of returned results

2008-06-14 Thread Umar Shah
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




Re: how to get the count of returned results

2008-06-13 Thread Chris Hostetter

: 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



how to get the count of returned results

2008-06-05 Thread Umar Shah
Hi,

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.

Now my question is
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.

thanks in anticipation,
umar