[prev in list] [next in list] [prev in thread] [next in thread]
List: solr-user
Subject: Re: How to check and handle empty Solr query
From: "Jack Krupansky" <jack () basetechnology ! com>
Date: 2014-05-30 15:38:06
Message-ID: 53E37D5D942D4A0487BE2A41EAA7D9F4 () JackKrupansky14
[Download RAW message or body]
Consider using the edismax query parser, which allows you to specify q.alt
which is an alternative query such as "*:". Or use an application layer to
handle the situation before it gets to Solr.
-- Jack Krupansky
-----Original Message-----
From: vit
Sent: Friday, May 30, 2014 9:01 AM
To: solr-user@lucene.apache.org
Subject: How to check and handle empty Solr query
In my code sometimes I get an emty query. Namely ... q=&.... which causes
"bad request" exception.
How to gracefully check query correctness and bypass execution if it is not
correct.
--
View this message in context:
http://lucene.472066.n3.nabble.com/How-to-check-and-handle-empty-Solr-query-tp4138877.html
Sent from the Solr - User mailing list archive at Nabble.com.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic