do not abort query on empty parameter
This commit is contained in:
parent
24814c393f
commit
534c32aa5d
|
@ -95,13 +95,7 @@ class Search(object):
|
|||
elif not value: # solr doesn't like empty fields (+foo:"")
|
||||
if not name:
|
||||
continue
|
||||
logger.info(
|
||||
'empty search term form "%s:%s", aborting buildQuery' % (
|
||||
name,
|
||||
value
|
||||
)
|
||||
)
|
||||
return {}
|
||||
continue
|
||||
elif field.class_ == 'solr.BoolField':
|
||||
if not isinstance(value, (tuple, list)):
|
||||
value = [value]
|
||||
|
|
Loading…
Reference in New Issue