summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2013-07-17 14:29:13 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2013-07-17 14:29:13 (GMT)
commit534c32aa5d134b5ed82eff276f6e7a1670e05582 (patch)
tree1ed4e29d2915816f552fd0a8fe3db3ac89979115
parent24814c393fb2559f5c19a5c4b9bb85554b1a8213 (diff)
downloadcollective.solr-534c32aa5d134b5ed82eff276f6e7a1670e05582.zip
collective.solr-534c32aa5d134b5ed82eff276f6e7a1670e05582.tar.gz
collective.solr-534c32aa5d134b5ed82eff276f6e7a1670e05582.tar.bz2
do not abort query on empty parameter
-rw-r--r--src/collective/solr/search.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/collective/solr/search.py b/src/collective/solr/search.py
index f10614d..62ef0b6 100644
--- a/src/collective/solr/search.py
+++ b/src/collective/solr/search.py
@@ -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]