lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmet Arslan <iori...@yahoo.com>
Subject Re: force "0" results from within a search component?
Date Thu, 05 May 2011 21:33:56 GMT
> Is there any way to force the response to be "0 results"
> from within a search component (and break out of the
> component chain)?
> 
> I'm doing some checks in my first-component and in some
> cases would like to stop processing the request and just
> pretend, that there are 0 results ...

Yes. You can disable all underlying components by their parameters.

setParam("query","false");
setParam("facet","false");
setParam("hl","false");

etc..

Mime
View raw message