add standalone optimize job, use fileid as unique id in lucene index, prune old index documents in optimize job