keyword search

git-svn-id: http://yolanda.mister-muffin.de/svn@415 7eef14d0-6ed0-489d-bf55-20463b2d70db
This commit is contained in:
erlehmann 2008-12-13 12:00:40 +00:00
parent 002e384004
commit 665c2ebf0d

View file

@ -32,6 +32,7 @@ class SearchController(BaseController):
raw_results.extend(model.Video.query.filter_by(dc_title=c.query).all()) raw_results.extend(model.Video.query.filter_by(dc_title=c.query).all())
raw_results.extend(model.Video.query.filter(model.Video.dc_creator.has(name=c.query)).all()) raw_results.extend(model.Video.query.filter(model.Video.dc_creator.has(name=c.query)).all())
raw_results.extend(model.Video.query.filter(model.Video.dc_contributor.any(name=c.query)).all()) raw_results.extend(model.Video.query.filter(model.Video.dc_contributor.any(name=c.query)).all())
raw_results.extend(model.Video.query.filter(model.Video.dc_subject.any(name=c.query)).all())
if not raw_results: if not raw_results:
c.message = { c.message = {