: q=49 OR *

I don't think that query means what you think it means...

: > Is there a way to tell Solr to only use fq and neglect q if no answer? Or
: > am I doomed to send first request, realize I've got no answer and then send
: > a second request?

what do you mean by "no answer" ?

I *think* what you are saying is that you want to search for "49", but if 
no docs are found matching "49" then return "all docs" (in both cases, 
filtered by your fqs)

"q=49 OR *" isn't going to do that for you.

there is no feature that will do that for you, at best you can write a 
query that will match all docs but score docs matching "49" higher then 
all other docs.

I think what you really want is to just issue two solr requests if the 
first one returns no results.  fortunately the second "all docs" request 
will be extremeley fast because of caching.

If i've missunderstood your question, please clarify...
http://wiki.apache.org/solr/UsingMailingLists


-Hoss

Reply via email to