Re: Handling empty query

2007-10-04 Thread Christopher Triggs
Have a look at http://www.mail-archive.com/solr-user@lucene.apache.org/msg03394.html The thread goes on to describe that just using q=*:* is efficient and is very usefull for getting facets for browsing / navigation. Regards, Triggsie On 4-Oct-07, at 3:25 PM, Guangwei Yuan wrote: Does S

Re: Handling empty query

2007-10-04 Thread Mike Klaas
On 4-Oct-07, at 3:25 PM, Guangwei Yuan wrote: Does Solr support empty queries? It'll be nice if Solr can return all results if q is null. Otherwise, I guess I'll have to write a customized request handler. Any thoughts? The dismax handler has an "alt.q" parameter which is used as the quer

RE: Handling empty query

2007-10-04 Thread Lance Norskog
If a field is required, and always has data, this query will enumerate all documents: field:[* TO *] -Original Message- From: Guangwei Yuan [mailto:[EMAIL PROTECTED] Sent: Thursday, October 04, 2007 3:26 PM To: solr-user@lucene.apache.org Subject: Handling empty query Hi, Does Solr

Handling empty query

2007-10-04 Thread Guangwei Yuan
Hi, Does Solr support empty queries? It'll be nice if Solr can return all results if q is null. Otherwise, I guess I'll have to write a customized request handler. Any thoughts? Thanks in advance. - Guangwei