public InventoryController(ICarDealerShipRepository <Vehicle> vehicleRepository, ICarDealerShipRepository <Make> makeRepository, ICarDealerShipRepository <VehicleModel> modelRepository, ISearchHelper searchHelper) { this.vehicleRepository = vehicleRepository; this.makeRepository = makeRepository; this.modelRepository = modelRepository; this.searchHelper = searchHelper; }
public RezervationPresenter(ILibraryPresenter libraryPresenter) { _libraryPresenter = libraryPresenter; helper = new GeneralSearchHelper(_libraryPresenter); controlerList = new List <BookUserControler>(); userHelper = new UserSearchHelper(_libraryPresenter); }
public HomeController(IBlogPostRepository blogPostRepository, Settings settings, IFeedGenerator feedGenerator, ISearchHelper searchHelper) { _blogPostRepository = blogPostRepository; _settings = settings; _feedGenerator = feedGenerator; _searchHelper = searchHelper; }
protected virtual void SearchText(ISearchHelper searchHelper, QueryList query) { if (string.IsNullOrWhiteSpace(Text)) { return; } string text = Regex.Replace(Text, @"[^\wæøåÆØÅ\-@\. ]", string.Empty).ToLowerInvariant().Trim(); string[] terms = text.Split(new[] { ' ' }, StringSplitOptions.RemoveEmptyEntries); if (terms.Length == 0) { return; } // Fallback if no fields are added FieldList fields = GetTextFields(searchHelper); if (fields == null || fields.Count == 0) { fields = FieldList.GetFromStringArray(new[] { "nodeName_lci", "contentTeasertext_lci", "contentBody_lci" }); } query.Add(fields.GetQuery(terms)); }
public AdvanceSearchPresenter(ILibraryPresenter libraryPresenter, FlowLayoutPanel panelSearchResult) { _libraryPresenter = libraryPresenter; _panelSearchResult = panelSearchResult; searchHelper = new GeneralSearchHelper(_libraryPresenter); bookUserControlers = new List <BookUserControler>(); }
protected override void SearchType(ISearchHelper helper, QueryList query) { if (ContentTypes == null || ContentTypes.Count == 0) { return; } query.AppendNodeTypeAliases(ContentTypes); }
protected virtual void SearchPath(ISearchHelper searchHelper, QueryList query) { if (RootIds == null || RootIds.Length == 0) { return; } query.Add("(" + string.Join(" OR ", from id in RootIds select "path_search:" + id) + ")"); }
protected virtual void SearchHideFromSearch(ISearchHelper searchHelper, QueryList query) { if (DisableHideFromSearch) { return; } query.Add("hideFromSearch:0"); }
protected virtual FieldList GetTextFields(ISearchHelper helper) { return(new FieldList { new Field("nodeName", 50), new Field("title", 40), new Field("teaser", 20) }); }
public void Setup() { var filePath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "SecuritySettingsWithRateMock.json"); var dictStr = File.ReadAllText(filePath); _generaList = ConvertDict(JsonConvert.DeserializeObject <JObject>(dictStr)); _searchHelper = new SearchHelper <string>(); }
/// <summary> /// Initializes a new instance of the <see cref="NavigationService" /> class. /// </summary> /// <param name="logger">The logger.</param> /// <param name="navigationHelper">The navigation helper.</param> /// <param name="searchHelper">The search helper.</param> /// <param name="catalogNavigation">The catalog navigation.</param> public NavigationService( ILogger logger, INavigationHelper navigationHelper, ISearchHelper searchHelper, IVariationNavigationHelper catalogNavigation) { this.logger = logger; this.navigationHelper = navigationHelper; this.searchHelper = searchHelper; this.catalogNavigation = catalogNavigation; }
protected virtual QueryList GetQueryList(ISearchHelper searchHelper) { QueryList query = new QueryList(); SearchType(searchHelper, query); SearchText(searchHelper, query); SearchPath(searchHelper, query); SearchHideFromSearch(searchHelper, query); return(query); }
public EventsController(IEventRepository eventRepo, ISearchHelper searchHelper, IGameHelper gameHelper, ILogHelper logHelper, IAzureBlobStorage blobStorage) { _eventRepo = eventRepo; _searchHelper = searchHelper; _gameHelper = gameHelper; _logHelper = logHelper; _blobStorage = blobStorage; }
public InteractorTools(IRepositoryNames repository, ISearchHelper<string> searchHelper, string selectedKey = null) { _searchHelper = searchHelper ?? throw new NullReferenceException(nameof(searchHelper)); RepoQcNames = repository ?? throw new NullReferenceException(nameof(repository)); _dataSource = RepoQcNames.GetNames(); _currentDataSource = new List<string>(); _currentDataSource = CreateDataSourceForPresenter(_dataSource); _selectedKey = selectedKey; }
/// <summary> /// Initializes a new instance of the <see cref="NavigationService" /> class. /// </summary> /// <param name="logger">The logger.</param> /// <param name="navigationHelper">The navigation helper.</param> /// <param name="searchHelper">The search helper.</param> /// <param name="catalogNavigation">The catalog navigation.</param> /// <param name="taxonomyHelper">The taxonomy helper.</param> public NavigationService( ILogger logger, INavigationHelper navigationHelper, ISearchHelper searchHelper, IVariationNavigationHelper catalogNavigation, ITaxonomyHelper taxonomyHelper) { this.logger = logger; this.navigationHelper = navigationHelper; this.searchHelper = searchHelper; this.catalogNavigation = catalogNavigation; this.taxonomyHelper = taxonomyHelper; }
protected virtual void SearchText(ISearchHelper searchHelper, QueryList query) { if (Text == null) { return; } string textQuery = Text.GetRawQuery(); if (string.IsNullOrWhiteSpace(textQuery)) { return; } query.Add(textQuery); }
internal bool CompactSearchIndexIfNeeded(ScheduleHistoryItem scheduleItem) { ISearchHelper shelper = SearchHelper.Instance; if (shelper.GetSearchCompactFlag()) { shelper.SetSearchReindexRequestTime(false); System.Diagnostics.Stopwatch stopWatch = System.Diagnostics.Stopwatch.StartNew(); if (InternalSearchController.Instance.OptimizeSearchIndex()) { stopWatch.Stop(); scheduleItem.AddLogNote(string.Format("<br/><b>Compacted Index, total time {0}</b>", stopWatch.Elapsed)); } } return(false); }
public UsersController(IUserRepository userRepo, IEventRepository eventRepo, ICommentRepository commentRepo, IFriendOperationRepository friendOperationRepo, IEventOperationRepository eventOperationRepo, IRepository <UserSetting> userSettingRepo, ISearchHelper searchHelper, ILogHelper logHelper) { _userRepo = userRepo; _eventRepo = eventRepo; _commentRepo = commentRepo; _friendOperationRepo = friendOperationRepo; _eventOperationRepo = eventOperationRepo; _userSettingRepo = userSettingRepo; _searchHelper = searchHelper; _logHelper = logHelper; }
public virtual IBooleanOperation GetBooleanOperation(ISearchHelper searchHelper, ISearcher searcher, IQuery query) { return(query.NativeQuery(string.Join(" AND ", GetQueryList(searchHelper)))); }
public SearchController(ISearchHelper searchHelper) { _searchHelper = searchHelper; }
public SiteRepository(ISEOFactory googleSiteSEO, ISearchHelper searchHelper) { _googleSiteSEO = googleSiteSEO; _searchHelper = searchHelper; }
/// <summary> /// Default constructor /// </summary> /// <param name="searchHelper">The search helper instance</param> public QueryRuleHelper(ISearchHelper searchHelper) { this.searchHelper = searchHelper; }
public SearchController(IDataHelper dataHelper, ISearchHelper searchHelper ) { _dataHelper = dataHelper; _searchHelper = searchHelper; }
public BookSearchPresenter(ILibraryPresenter presenter) { _libraryPresenter = presenter; borrowedbooks = _libraryPresenter.Container.borrowed.GetAllRecords(); helper = new GeneralSearchHelper(presenter); }
public Search(ISearchHelper helper, IMovieDBRestInterface restInterface) { _helper = helper; _restInterface = restInterface; }
/// <summary> /// Initializes a new instance of the <see cref="VariationNavigationHelper" /> class. /// </summary> /// <param name="logger">The logger.</param> /// <param name="navigationHelper">The navigation helper.</param> /// <param name="searchHelper">The search helper.</param> public VariationNavigationHelper(ILogger logger, INavigationHelper navigationHelper, ISearchHelper searchHelper) { this.logger = logger; this.navigationHelper = navigationHelper; this.searchHelper = searchHelper; }
public HomePresenter(ILibraryPresenter libraryPresenter) { _libraryPresenter = libraryPresenter; searchPresenter = new BookSearchPresenter(_libraryPresenter); searchHelper = new GeneralSearchHelper(_libraryPresenter); }
protected virtual ISearcher GetSearcherByIndexName(IExamineManager examineManager, ISearchHelper searchHelper, string indexName) { // Get the index from the Examine manager if (!examineManager.TryGetIndex(indexName, out IIndex index)) { throw new Exception($"Examine index {indexName} not found."); } // Get the searcher from the index ISearcher searcher = index.GetSearcher(); if (searcher == null) { throw new Exception("Examine index {indexName} does not specify a searcher."); } // Return the searcher return(searcher); }
public virtual ISearcher GetSearcher(IExamineManager examineManager, ISearchHelper searchHelper) { return(GetSearcherByIndexName(examineManager, searchHelper, ExamineConstants.ExternalIndexName)); }
protected virtual void SearchType(ISearchHelper searchHelper, QueryList query) { }