public StorageSearch(IWSBuilder wSBuilder, InterfaceController interfaceController) { var model = interfaceController.GetInterfacesModel(""); this.interfaces = model.Interfaces.ToArray(); var stat = wSBuilder.BuildStat(interfaces.Select(w => w.Name)); var index = wSBuilder.Index(interfaces.Select(w => new Bulk { Sentence = w.Name }), stat); this.search = wSBuilder.CreateSearch(index); }