我想测试下Geo Aaggregation。下面是我的思路
回复Elasticsearch • BEATA 发起了问题 • 1 人关注 • 0 个回复 • 5528 次浏览 • 2016-01-22 16:08
推荐一个ES做机器学习的blog,我觉得非常的酷
Elasticsearch • zttech 发表了文章 • 0 个评论 • 7771 次浏览 • 2016-01-21 21:56
es和hive的集成问题
Elasticsearch • zttech 回复了问题 • 2 人关注 • 1 个回复 • 7034 次浏览 • 2016-01-21 15:33
logstash的message去掉反斜杠
Logstash • atomyliu 回复了问题 • 3 人关注 • 2 个回复 • 11213 次浏览 • 2016-03-18 18:31
logstash-input-beats基于lumberjack协议实现?
回复Beats • evis 发起了问题 • 1 人关注 • 0 个回复 • 5684 次浏览 • 2016-01-21 12:31
使用node client报以下错误,使用transport client 就没有错误
回复Elasticsearch • Jellybean 发起了问题 • 1 人关注 • 0 个回复 • 6664 次浏览 • 2016-01-20 15:24
ES版本升级
Elasticsearch • fishman 回复了问题 • 4 人关注 • 2 个回复 • 6923 次浏览 • 2016-09-10 16:34
用es做搜索引擎,大家是怎么处理热搜词的?
Elasticsearch • 匿名用户 回复了问题 • 10 人关注 • 5 个回复 • 23169 次浏览 • 2019-12-20 16:59
请问在应用中使用node client还是transport client比较好?
Elasticsearch • zttech 回复了问题 • 5 人关注 • 3 个回复 • 6110 次浏览 • 2016-01-19 14:03
ES2.1中@timestamp的mapping冲突
Elasticsearch • sp42 回复了问题 • 4 人关注 • 4 个回复 • 11707 次浏览 • 2016-06-29 13:38
nest驱动IndexName问题
Elasticsearch • cdzhoubin 发表了文章 • 1 个评论 • 4937 次浏览 • 2016-01-17 21:40
static void Main()
{
var node = new Uri("http://localhost:9200");
var settings = new ConnectionSettings(
node,
defaultIndex: "my-application"
);
var client = new ElasticClient(settings);
var person = new Person
{
Id = "1",
Firstname = "Martijn",
Lastname = "Laarman"
};
var index = client.Index(person);
}
调整为手动设置indexName时出错,示例代码如下:
static void Main()
{
var node = new Uri("http://localhost:9200");
var settings = new ConnectionSettings(
node,
defaultIndex: "my-application"
);
settings.MapDefaultTypeIndices(d => d.Add(typeof(Person), "constIndex"));
var client = new ElasticClient(settings);
var person = new Person
{
Id = "1",
Firstname = "Martijn",
Lastname = "Laarman"
};
var index = client.Index(person);
}
出错提示为:
{StatusCode: 400,
Method: PUT,
Url: http://localhost:9200/constIndex/automobile/1,
Request: {
"firstname": "Martijn",
"lastname": "Laarman",
"id": "1"
},
Response: <Response stream not captured or already read to completion by serializer, set ExposeRawResponse() on connectionsettings to force it to be set on>}
using System;
using Nest;
namespace ConsoleApplication1
{
class Program
{
private static IIndexResponse Index<T>(T person, string indexName) where T : class
{
var node = new Uri("http://localhost:9200");
var settings = new ConnectionSettings(node,defaultIndex: indexName);
var client = new ElasticClient(settings);
return client.Index(person);
}
static void Main()
{
string indexNameError = typeof(Person).FullName
.Substring(typeof(Person).FullName.LastIndexOf(".", StringComparison.Ordinal) + 1) + "Indexs";
const string indexNameOk = "test";
var person = new Person
{
Id = "1",
Firstname = "Martijn",
Lastname = "Laarman"
};
var ok = Index(person, indexNameOk);
Console.WriteLine("Result:" + ok.IsValid);
var error = Index(person, indexNameError);
Console.WriteLine("Result:" + error.IsValid);
Console.ReadKey();
}
}
[Serializable]
public class Person
{
public string Firstname { get; set; }
public string Lastname { get; set; }
public string Id { get; set; }
}
}
flume读取kafka数据写入ES2.1+shield
Elasticsearch • suwensen 回复了问题 • 3 人关注 • 3 个回复 • 8132 次浏览 • 2016-01-27 23:10
关于terms query查询的怪异问题
Elasticsearch • medcl 回复了问题 • 2 人关注 • 1 个回复 • 6716 次浏览 • 2016-01-19 12:14
ES 在做mysql同步的问题
Elasticsearch • kl 回复了问题 • 3 人关注 • 3 个回复 • 6371 次浏览 • 2016-03-28 18:01