我想做这样的事情
contents = contents.find() # get all from collection
if user filled search box 1:
contents = contents.find({'field1':seached_var})
if user filled search box 2:
contents = contents.find({'field2':seached_var2})
内容将包含最终过滤结果。用mongodb在python中可行吗?