Adding Optimize and DeleteBy{DocId,Term) functionality to indexer.