added MAX_NUM_PER_USER config; fixed searchInDocsSession null error
ignore pdfs directory