projects
/
Plinn.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
cb53449
)
Bugfix : correction syntaxe requêtes soir.
author
Benoît Pin
<pin@cri.ensmp.fr>
Mon, 27 Apr 2015 11:39:49 +0000
(13:39 +0200)
committer
Benoît Pin
<pin@cri.ensmp.fr>
Mon, 27 Apr 2015 11:39:49 +0000
(13:39 +0200)
Products/Plinn/catalog.py
patch
|
blob
|
history
diff --git
a/Products/Plinn/catalog.py
b/Products/Plinn/catalog.py
index
7e49083
..
d9e78a3
100644
(file)
--- 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)
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]))
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]))