public UintraElasticIndex( IElasticSearchRepository elasticSearchRepository, ISearchScoreProvider searchScoreProvider, IEnumerable <IElasticEntityMapper> mappers) : base(elasticSearchRepository, mappers) { scores = searchScoreProvider.GetScores(); }
public SearchScoreModel GetScores() { var scores = new SearchScoreModel() { UserNameScore = double.Parse(ConfigurationManager.AppSettings[UserNameScoreKey], CultureInfo.InvariantCulture), UserEmailScore = double.Parse(ConfigurationManager.AppSettings[UserEmailScoreKey], CultureInfo.InvariantCulture), TitleScore = double.Parse(ConfigurationManager.AppSettings[TitleScoreKey], CultureInfo.InvariantCulture) }; return(scores); }
public MemberSearchDescriptorBuilder(ISearchScoreProvider searchScoreProvider) { _scores = searchScoreProvider.GetScores(); }
public UintraElasticIndex(IElasticSearchRepository elasticSearchRepository, ISearchScoreProvider searchScoreProvider) : base(elasticSearchRepository) { scores = searchScoreProvider.GetScores(); }