public IndexSearcherInstance GetIndexSearcher(object folder) { var targetFolder = GetFolderFromObject(folder); var indexSearcher = LuceneHelper.GetIndexSearcher(targetFolder); return(new IndexSearcherInstance(this.Engine.Object.InstancePrototype, indexSearcher)); }