コード例 #1
0
        public ElasticSearchEntityExtract(AbstractConnection connection, Entity entity, IEnumerable<string> fields, bool correspondingKeys = false) {
            _entity = entity;
            _correspondingKeys = correspondingKeys;

            _fields = fields.Select(a => a.ToLower()).ToArray(); //for now
            _client = new ElasticSearchClientFactory().CreateNest(connection, entity);
            Name = string.Format("ElasticsearchEntityExtract ({0}:{1})", _client.Index, _client.Type);
        }
コード例 #2
0
        public ElasticSearchEntityExtract(AbstractConnection connection, Entity entity, IEnumerable <string> fields, bool correspondingKeys = false)
        {
            _entity            = entity;
            _correspondingKeys = correspondingKeys;

            _fields = fields.Select(a => a.ToLower()).ToArray(); //for now
            _client = new ElasticSearchClientFactory().CreateNest(connection, entity);
            Name    = string.Format("ElasticsearchEntityExtract ({0}:{1})", _client.Index, _client.Type);
        }