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:
helmutm 2008-05-04 09:05:33 +00:00
parent 09945edc72
commit fd77f347c5

View file

@ -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)