bug fix on standard search when no text or title criteria are given
git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@2576 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
09945edc72
commit
fd77f347c5
1 changed files with 2 additions and 0 deletions
2
query.py
2
query.py
|
@ -151,6 +151,8 @@ class FullQuery(BaseQuery):
|
|||
r2 = cat.apply(criteria) #r2 = set(cat.searchResults(**criteria))
|
||||
else:
|
||||
r2 = IFBucket() #r2 = set()
|
||||
if not r1 and not r2:
|
||||
r1 = cat.apply(criteria) # search only for type
|
||||
x, uids = weightedUnion(r1, r2) #result = r1.union(r2)
|
||||
for r, score in uids.items():
|
||||
obj = intids.getObject(r)
|
||||
|
|
Loading…
Add table
Reference in a new issue