Have a look at the q.alt parameter (http://wiki.apache.org/solr/DisMaxRequestHandler#q.alt) which is used for exactly this issue. Basically putting q.alt=*:* in your query means you can leave out the q parameter if you want all documents to be selected.

Regards,

gwk

On 2/19/2010 11:28 AM, Roland Villemoes wrote:
Hi all,

We have a web application build on top of Solr, and we are using a lot of 
facets - everything works just fine.
When the user first hits the searchpage - we would like to do a "get all query" 
to the a result, and thereby get all facets so we can build up the user interface from 
this result/facets.

So I would like to do a q=*:* on the search. But since I have switched to the 
dismax requesthandler this does not work anymore. ?

My request/url looks like this:


a)       /solr/da/mysearcher/?q=*:*           Does not work

b)      /solr/da/select?q=*:*                          Does work


But I really need to use a) since I control boosting/ranking in the definition.
Furthermore when the user "drill down" the search result, by selecting from the 
facets, I still need to get the full searchresult, like:

/solr/da/mysearcher/?q=*:*&fq=color:red     Does not work.


Reply via email to