Note that whatever query you use will be cached in the query cache. -
*:* is likely the best choice. Another alternative if you've got
dynamic fields wired in, is something like
_nonexistent_field_s:dummy_value
Erik
On Sep 28, 2009, at 5:17 AM, Øystein F. Steimler wrote:
Hi, list!
I want to add a q.alt matching no documents in my dismax handler to
serve a
consistent reply to a client application.
Without a q.alt, a missing q from the client will cause an "missing
query
string" error. With a q.alt matching no document I will be able to
respond
with an empty result set when no query is supplied.
I've been using q.alt=-*:* because *:* is said to be the most
efficient way of
querying for every document. is -*:* the most efficient way of
querying for
no document?
.øs
--
Øystein Steimler, Produktans, EasyConnect AS - http://1890.no
oystein.steim...@easyconnect.no - GPG: 0x784a7dea - Mob: 90010882