added flag to perform an AND query for file search