From: Benoît Pin Date: Mon, 27 Apr 2015 11:39:49 +0000 (+0200) Subject: Bugfix : correction syntaxe requêtes soir. X-Git-Url: https://scm.cri.ensmp.fr/git/Plinn.git/commitdiff_plain/face2441fd6040fa2a45c5e02a0d2dbc6d4ce24d?ds=inline Bugfix : correction syntaxe requêtes soir. --- diff --git a/Products/Plinn/catalog.py b/Products/Plinn/catalog.py index 7e49083..d9e78a3 100644 --- a/Products/Plinn/catalog.py +++ b/Products/Plinn/catalog.py @@ -160,7 +160,7 @@ class DelegatedCatalog(Catalog) : try : plan.remove(i) except ValueError : pass c = SolrConnection(self.zcat.solr_url) - q =' AND '.join(['%s:"%s"' % item for item in delegatedQuery.items()]) + q =' AND '.join(['%s:(%s)' % item for item in delegatedQuery.items()]) resp = c.query(q, fields='id', rows=len(self)) c.close() return IISet(filter(None, [self.uids.get(r['id']) for r in resp.results]))