-
2 votes2 answers1330 views
创建RestHighLevelClient bean时出现NoClassDefFoundError错误
我在SpringBoot应用程序中创建HighEndRestClient bean时遇到错误 . 我已经完成了一个测试'app',我检查了我可以实例化我想要的对象,然后拨打我想要的电话,现在我正在制作新的应用程序 . 我在pom中有这些依赖项 <dependency> <groupId>org.elasticsearch.client</groupId... -
0 votes0 answers676 views
使用spark&elasticsearch-hadoop时总是得到“EsHadoopInvalidRequest:null”
我的场景:从elasticsearch读取数据然后做一些计算,计算的最终结果存储在elasticsearch中 . 我使用少量数据来测试是否成功,但切换到大量数据总是会出现此错误 . 我真的很困惑 spark版本:1.6.1 elasticsearch版本:2.3.1 线程“main”中的异常org.apache.spark.SparkException:作业因阶段失败而中止:阶段0.0中的任务1... -
0 votes0 answers1098 views
弹性搜索,Filter无法使用java.sql.Time对象
即使查询和数据中的时间格式相同,ES仍然没有给出任何结果,请你检查并纠正我从Java处理java.sql.Time对象时的任何错误 查询示例如下: GET /regularride/regularride/_search { "size": 5000, "query": { "bool": ... -
1 votes1 answers1987 views
Spark集群 - 在hadoop上读/写
我想从hadoop读取数据,在spark上处理,并在hadoop和弹性搜索上得到wirte结果 . 我有很少的工作节点来做这件事 . Spark独立集群就足够了?或者我是否需要使用hadoop集群来使用纱线或介子? 如果独立集群模式足够,应该在所有节点上设置jar文件,而不像yarn,mesos模式吗? -
1 votes2 answers1479 views
验证数据库由Elasticsearch编制索引
我正在使用Elasticsearch来索引和搜索我的数据库...... 如何验证数据库是否已编入索引? 如果我使用以下命令: 卷曲-XGET'http://localhost:9200/_search?q=whatever' 结果是: { "took": 4, "timed_out": false, "_shards&quo... -
3 votes2 answers976 views
BM25弹性搜索中的相似性
我想将Elasticsearch的默认相似性更改为BM25 . 根据 http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.4/index-modules-similarity.html 我只需要将以下行添加到elasticsearch.yml文件中 index.similarity.default.type: BM25 但... -
3 votes1 answers1532 views
ElasticSearch索引随机变为空
ElasticSearch索引随机变为空,但大多数情况下,它是在部署使用Rails构建的应用程序之后发生的 . 这里有一些关于ElastiSearch的信息: curl -XGET 'http://localhost:9200/_nodes?pretty' curl -XGET 'http://localhost:9200/_cluster/health?pretty' curl 'localho... -
1 votes1 answers1082 views
Elasticsearch indices.breaker.fielddata.limit设置
我可以使用CURL设置breaker.fielddata限制,但不遵守config中的设置: ES版本:1.6.0 在我的节点配置中 /etc/elasticsearch/elasticsearch.yml indices.breaker.fielddata.limit: 60% #indices.breaker.fielddata.limit: 60% # this should work,... -
57 votes6 answers469 views
如何在Elasticsearch 2.0中启用远程访问/请求?
从v2.0开始,Elasticsearch默认只在localhost上侦听,但我想在localhost之外发出请求 . 例如,允许这样的请求: http://localhost:9200/ 但这不是: http://server_name:9200/ (来自服务器外部,例如:同一LAN中的本地计算机) . 谢谢你的帮助 . -
1 votes0 answers241 views
何时关闭ElasticSearch中的客户端和节点?
作为弹性搜索的新手,我几乎没有关于关闭客户端和节点的最佳实践以及我们需要关闭它们的情况的问题 . 我正在使用elasticsearch java api . public static Node elasticSearchNode = null; public static Client elasticSearchClient = null; 我声明节点和客户端都是静态和静态get客户端方法,我... -
0 votes1 answers517 views
从java启动Elastic Search而不是任何批处理文件
我对此完全陌生 . . . 我想用java代码开始弹性搜索,用main方法说 `Node node = nodeBuilder().local( true ).node(); Client client = node.client(); node.start();` 我使用上面的代码运行它运行没有错误,但它只停止两秒后我在控制台中看到的东西 log4j:W... -
1 votes1 answers1916 views
无节点可用异常Elasticsearch 5.0.2
首先,我很抱歉我的英语 . 我的Java API传输客户端有问题 . 我有一个主节点和三个数据节点 . 我的Elasticsearch版本是5.0.2,我使用的是5.0.2 API . 我尝试使用Transport Client连接到我的群集,然后我回复 Exception in thread "main" NoNodeAvailableException[None of th... -
0 votes1 answers493 views
节点Elasticsearch - 批量索引不起作用 - 不支持Content-Type标头[application / x-ldjson]
作为elasticsearch的新手,我正在通过与节点集成并尝试在Windows中执行以下在线git示例来探索它 . https://github.com/sitepoint-editors/node-elasticsearch-tutorial 在尝试从data.json导入1000个项目的数据时,执行'node index.js'失败,出现以下错误 . 通过启用跟踪,我现在将以下内容视为批量函... -
0 votes2 answers1306 views
Facets用空格标记标签 . 有解决方案吗?
我有facets tokenize标签带空格的问题 . 我有以下映射: curl -XPOST "http://localhost:9200/pictures" -d ' { "mappings" : { "pictures" : { "properties&q... -
7 votes1 answers957 views
Elasticsearch:从聚合中的存储区访问值
我想创建单词 Cloud 来可视化Elasticsearch查询的结果 . 在词 Cloud 中,应显示与查询匹配的文档中出现的所有术语 . 因此,我需要计算某些任意文档集中出现的所有术语的术语频率 . 问题在于我需要文档中所有术语的实际频率,而不仅仅是术语出现的文档数量(这可以使用术语聚合或方面轻松解决) . 给出以下测试指数 curl -XPOST localhost:9200/test -d... -
2 votes1 answers965 views
如何在嵌套的top_hits聚合中获取父文档?
这是我的文档/映射与嵌套价格数组: { "name": "Foobar", "type": 1, "prices": [ { "date": "2016-03-22", ... -
5 votes0 answers675 views
elasticsearch groovy没有这样的属性:ctx for class
这是我第一次在elasticsearch中使用脚本,我遇到了以下问题: curl -XPOST 10.29.97.129:9200/.marvel-es-1-*/_search -d '{ "query": { "bool": { "filter": [ ... -
0 votes1 answers613 views
ElasticSearch动态存储桶聚合
目前我有以下映射: array( 'index' => 'my_index', 'body' => array( 'mappings' => array( 'products' => array( '_source' => array... -
0 votes1 answers1368 views
ElasticSearch Cardinality问题
基数聚合计算不同值的近似计数 . 但是,为什么即使对于存储在单个分片中的索引,它也显示不正确的值? GET /jobs/_settings { "jobs": { "settings": { "index": { "number_of_shards... -
2 votes1 answers1412 views
Elasticsearch错误:无法解析,文档为空
当我尝试索引一个简单的JSON文档时,我在Elasticsearch(0.90)API中收到此错误 . 这是代码: TransportClient client = new TransportClient().addTransportAddress(new InetSocketTransportAddress("localhost", 9300)); String indexN... -
1 votes1 answers1551 views
elasticsearch在专用服务器上的RemoteTransportException
我正在尝试将elasticsearch与 生产环境 集成,但会遇到以下异常 . 我在服务器1.7.0_40中使用的jvm 2015-01-12 21:29:06 DEBUG netty:94 - [Whitemane,Aelfyre]连接到节点[[#transport#-1] [inet [/xxx.xxx.xx.xxx:9300]]] 2015- 01-12 21:29:06 WARN n... -
1 votes0 answers1353 views
带有RSS插件的elasticsearch在重启后挂起
我的Mac上有一个干净的ES服务器和RSS插件 - 添加几个源后,服务器在重新启动后挂起(因为我想添加额外的插件或重新启动mac) . 有没有办法防止它/恢复当前的安装? 日志: [2015-01-14 09:43:27,870] [警告] [discovery.zen.ping.multicast] [Mar-Vell]收到ping响应ping_response {node [[Asmodeu... -
2 votes0 answers447 views
弹性搜索:如何移动主分片?
目前我有一个有三个节点的集群 . 所有节点都包含数据并且是主要的 . 有6个主分片,因此每个节点有两个主分片 . 参数 discovery.zen.minimum_master_nodes 为1 . 我想要的配置是六个节点,有6个主分片,每个分片有一个副本, discovery.zen.minimum_master_nodes = 3 . 问题是群集是 生产环境 群集,我必须迁移到第二个配置而不... -
1 votes0 answers21 views
节点加载,但Elasticsearch有0个分片
我正在测试具有默认复制,默认分片的20节点集群,并且最近想要从默认的“elasticsearch”重命名集群 . 因此,我更新了配置群集名称,并另外重命名了数据 mylocation/data/OldName 至 mylocation/data/NewName 当然包含: nodes/0 nodes/1 等等... 大约一个月后,我再次加载我的集群,我看到当所有20个节点重新联机时,它会显示... -
0 votes2 answers220 views
在群集中的elasticsearch中停止单词分析器
我想知道分析器(在elasticsearch中)应该只在主节点上实现,还是必须分别在所有节点上实现? 找不到准确的答案 . 请帮忙! 谢谢 { filter: { spanish_stemmer: { type: "stemmer", language: "spanish" }, spanish_stop: { type: "stop"... -
0 votes1 answers1780 views
移动Elasticsearch索引后没有搜索命中
我需要将Elasticsearch索引从远程主机移动到我的本地主机 . 我进行了一些研究,找到了一个名为elasticdump的工具,它似乎是适合这项工作的工具 . 正如其GitHub页面上指定的那样,我运行了以下命令: elasticdump --input=http://remote_host/index_name --ouput=http://localhost/index_name 运行... -
0 votes2 answers448 views
ElasticSearch - 用于分析索引文档的配置
在单个请求中,我想从SOR检索文档,将它们存储在ElasticSearch中,然后使用ES搜索API搜索这些文档 . 从索引文档的时间到分析和准备搜索的时间似乎有一些滞后 . 是否有任何方法可以将ES配置为不从索引文档的索引返回,直到分析器对其进行分析并立即搜索? -
2 votes1 answers455 views
Elasticsearch索引搜索货币$和£符号
在我的一些文件中,我有$或£符号 . 我想搜索£并检索包含该符号的文档 . 我已经经历了the documentation,但我得到了一些认知失调 . # Delete the `my_index` index DELETE /my_index # Create a custom analyzer PUT /my_index { "settings": { ... -
0 votes1 answers127 views
在ElasticSearch中进行索引后搜索
我想索引10亿条记录 . 每条记录都有2个属性(attribute1和attribute2) . 必须合并在attribute1中具有相同值的每个记录 . 例如,我有两个记录 attribute1 attribute2 1 4 1 6 我的弹性文件必须是 { "attribute1": "1" "attribute2&quo... -
1 votes2 answers426 views
Elasticsearch:更新索引分析器后,索引需要一个reindex吗?
如果我更新索引分析器像同义词或关键字,我需要重新索引文档? 分析仪更新后我注意到一些奇怪的搜索结果 .