: 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?
I don't think so ... solr internally reverse pure negative queries so that
they are combined with a matchalldocsquery t
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, l
patch created for lucene:
https://issues.apache.org/jira/browse/LUCENE-1931
I am not sure what the right thing to do here is to hook it into
QueryParser.java.
Maybe the Solr people can comment on how to hook it into Solr.
-John
On Mon, Sep 28, 2009 at 6:31 AM, John Wang wrote:
> You can actu
You can actually write a NoHitsQuery implementation,it is rather simple. If
you like, I can create a issue and attach a patch.
-John
On Mon, 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
> consiste