Re: q.alt matching no documents

2009-09-29 Thread Chris Hostetter
: 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

Re: q.alt matching no documents

2009-09-28 Thread Erik Hatcher
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

Re: q.alt matching no documents

2009-09-28 Thread John Wang
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 < > oyst...@easyconnect.no> wrote: > >> Hi, list! >> >> I wan

Re: q.alt matching no documents

2009-09-28 Thread John Wang
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 t

q.alt matching no documents

2009-09-28 Thread Øystein F. Steimler
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 wit