Exemplo n.º 1
0
 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);
        }
Exemplo n.º 3
0
 public MemberSearchDescriptorBuilder(ISearchScoreProvider searchScoreProvider)
 {
     _scores = searchScoreProvider.GetScores();
 }
 public UintraElasticIndex(IElasticSearchRepository elasticSearchRepository, ISearchScoreProvider searchScoreProvider) : base(elasticSearchRepository)
 {
     scores = searchScoreProvider.GetScores();
 }