python script to scan documents and search them later using a fulltext index