# 中文提问与讨论

**URL:** https://discuss.elastic.co/c/in-your-native-tongue/chinese/46.md?page=5

[Latest](https://discuss.elastic.co/latest.md) · [Categories](https://discuss.elastic.co/categories.md) · [Tags](https://discuss.elastic.co/tags.md)

**Page:** 6

---

## [Elasticsearch stopword](https://discuss.elastic.co/t/elasticsearch-stopword/76145)

<div class="topic-metadata">

**Author:** [@Greentea](https://discuss.elastic.co/u/Greentea)\
**Replies:** 1\
**Last updated:** [March 20, 2017, 12:31pm UTC](https://discuss.elastic.co/t/elasticsearch-stopword/76145 "2017-03-20T12:31:58Z")

</div>

你好！ 我打算建立中文的stopword txt. 我在用 "stopwords\_path": "stopword/chinese.txt" 但我在kibana中发现好像不支援中字的stopword，有人有方法解决吗？

---

## [Elasticsearch 5.1.1 与 repository hdfs 集成启动出错](https://discuss.elastic.co/t/elasticsearch-5-1-1-repository-hdfs/69656)

<div class="topic-metadata">

**Author:** [@111145](https://discuss.elastic.co/u/111145)\
**Replies:** 1\
**Last updated:** [January 13, 2017, 9:01am UTC](https://discuss.elastic.co/t/elasticsearch-5-1-1-repository-hdfs/69656 "2017-01-13T09:01:59Z")

</div>

已经下载好了 repository hdfs ，但配置 elasticsearch.yml 出错，不能识别 hdfs 属性。 \[2016-12-21T04:49:58,120\]\[WARN \]\[o.e.b.ElasticsearchUncaughtExceptionHandler\] \[node-1\] uncaught exception in thread \[main\] org.elasticsearch.bootstrap.Star…

---

## [.txt文件不能被搜索](https://discuss.elastic.co/t/txt/61451)

<div class="topic-metadata">

**Author:** [@zikezi](https://discuss.elastic.co/u/zikezi)\
**Replies:** 2\
**Last updated:** [January 13, 2017, 8:57am UTC](https://discuss.elastic.co/t/txt/61451 "2017-01-13T08:57:54Z")

</div>

大家好，我目前使用的是elastic2.1.2,mapper-attachments3.1.2, java1.7 64bit.所有的配置均是默认的配置，没做任何改变。目前遇到一个问题，在上传附件为.txt时，不能根据txt里的内容进行搜索，但是ms office 却可以。下面是我的索建索引相关信息： 1\> mapping \`{ "mappings": { "lesson": { "properties": { "sysOr…

---

## [Redis做broker时采用订阅发布模式数据丢失问题](https://discuss.elastic.co/t/redis-broker/68901)

<div class="topic-metadata">

**Author:** [@sockaddr\_in](https://discuss.elastic.co/u/sockaddr_in)\
**Replies:** 0\
**Last updated:** [December 13, 2016, 4:11pm UTC](https://discuss.elastic.co/t/redis-broker/68901 "2016-12-13T16:11:59Z")

</div>

使用redis的发布订阅模式，有个缺点就是这种方式虽然能保证每个进程能拿到相同的消息， 但是如果发布者发送消息过快，而且在这一时刻数据量很大，那么会存在数据丢失问题，而且接收方还存在乱序现象。 测试的时候分别发送1w和5k数据，发送1w条消息时有数据丢失现象，发送5k条消息时没有。 请问大家在在使用redis作为broker时是怎么配置的，如果直接用生产者－消费者模式，那么多个logstash监听 同一个队列，进程直接存在竞争关…

---

## [Es2.3.3版本与hadoop结合有实际的例子吗？](https://discuss.elastic.co/t/es2-3-3-hadoop/53616)

<div class="topic-metadata">

**Author:** [@liverpoolilove](https://discuss.elastic.co/u/liverpoolilove)\
**Replies:** 2\
**Last updated:** [November 30, 2016, 2:37am UTC](https://discuss.elastic.co/t/es2-3-3-hadoop/53616 "2016-11-30T02:37:29Z")

</div>

es2.3.3版本与hadoop结合有实际的例子吗？

---

## [使用logstash5.0.1启动时kafka-input报错](https://discuss.elastic.co/t/logstash5-0-1-kafka-input/67297)

<div class="topic-metadata">

**Author:** [@forsaken527](https://discuss.elastic.co/u/forsaken527)\
**Replies:** 0\
**Last updated:** [November 28, 2016, 2:55am UTC](https://discuss.elastic.co/t/logstash5-0-1-kafka-input/67297 "2016-11-28T02:55:00Z")

</div>

kafka\_0.10.0.1 logstash-5.0.1 java version "1.8.0\_111" os centos-6.5 \[2016-11-28T10:28:38,662\]\[INFO \]\[org.apache.kafka.common.utils.AppInfoParser\] Kafka version : 0.10.0.1 \[2016-11-28T10:28:38,663\]\[INFO \]\[org.apache.ka…

---

## [Logstash服务启动报错](https://discuss.elastic.co/t/logstash/66831)

<div class="topic-metadata">

**Author:** [@yinsl](https://discuss.elastic.co/u/yinsl)\
**Replies:** 1\
**Last updated:** [November 22, 2016, 9:58am UTC](https://discuss.elastic.co/t/logstash/66831 "2016-11-22T09:58:43Z")

</div>

\[2016-11-22T16:57:41,430\]\[INFO \]\[org.logstash.beats.Server\] Starting server on port: 4560 \[2016-11-22T16:57:41,431\]\[WARN \]\[io.netty.channel.AbstractChannel\] Force-closing a channel whose registration task was not accepte…

---

## [Elasticsearch 关于store字段的处理](https://discuss.elastic.co/t/elasticsearch-store/66236)

<div class="topic-metadata">

**Author:** [@sshling](https://discuss.elastic.co/u/sshling)\
**Replies:** 0\
**Last updated:** [November 16, 2016, 10:08am UTC](https://discuss.elastic.co/t/elasticsearch-store/66236 "2016-11-16T10:08:26Z")

</div>

环境：ES2.1.2 kibana4.3.3 问题： 有一个文档的时间字段设置如下： "time": { "format": "epoch\_millis", "store": true, "type": "date" } 即 store属性设置为true 当使用kibana 检索这个文档的时候，请求的查询语句，摘录部分如下： { "fields": \[ "\*", "\_…

---

## [有没有context suggester的使用示例](https://discuss.elastic.co/t/context-suggester/66234)

<div class="topic-metadata">

**Author:** [@lilongsy](https://discuss.elastic.co/u/lilongsy)\
**Replies:** 0\
**Last updated:** [November 16, 2016, 9:56am UTC](https://discuss.elastic.co/t/context-suggester/66234 "2016-11-16T09:56:25Z")

</div>

https://www.elastic.co/guide/en/elasticsearch/reference/2.2/suggester-context.html 官方文档没有示例或结果。 有没有context suggester的使用示例？以便作参考

---

## [Logstash class display "?"](https://discuss.elastic.co/t/logstash-class-display/63269)

<div class="topic-metadata">

**Author:** [@slowlizard](https://discuss.elastic.co/u/slowlizard)\
**Replies:** 1\
**Last updated:** [November 8, 2016, 4:51am UTC](https://discuss.elastic.co/t/logstash-class-display/63269 "2016-11-08T04:51:48Z")

</div>

"\_index": "meipianapp-2016.10.18", "\_type": "log4j", "\_id": "AVfXDMl1egLz1PD\_qnMm", "\_score": null, "\_source": { "message": "用户查询时光祭异常:MjController.userMjActivityPast: aMapCityCode:010", "@version": "1"…

---

## [如何使用Sum Bucket Aggregation api](https://discuss.elastic.co/t/sum-bucket-aggregation-api/62770)

<div class="topic-metadata">

**Author:** [@Neil\_Tw](https://discuss.elastic.co/u/Neil_Tw)\
**Replies:** 1\
**Last updated:** [October 17, 2016, 2:36am UTC](https://discuss.elastic.co/t/sum-bucket-aggregation-api/62770 "2016-10-17T02:36:55Z")

</div>

大家好 ，請問一下如何使用Sum Bucket Aggregation java api 網路上都沒有example code thanks

---

## [使用 highlight 的 boundary\_chars参数后仍然从非边界字符截断](https://discuss.elastic.co/t/highlight-boundary-chars/57805)

<div class="topic-metadata">

**Author:** [@wpzdm](https://discuss.elastic.co/u/wpzdm)\
**Replies:** 2\
**Last updated:** [September 12, 2016, 9:42am UTC](https://discuss.elastic.co/t/highlight-boundary-chars/57805 "2016-09-12T09:42:11Z")

</div>

已使用 highlight 的 boundary\_chars参数，但有时仍然从非边界字符截断。 测试数据如下： PUT wpz\_2 PUT wpz\_2/\_mapping/test { "properties": { "test": { "analyzer": "index\_ansj", "type": "string", "term\_vector": "with\_positi…

---

## [关于 Percolate Query 检索](https://discuss.elastic.co/t/percolate-query/57068)

<div class="topic-metadata">

**Author:** [@yan\_feng](https://discuss.elastic.co/u/yan_feng)\
**Replies:** 2\
**Last updated:** [August 8, 2016, 4:01am UTC](https://discuss.elastic.co/t/percolate-query/57068 "2016-08-08T04:01:39Z")

</div>

Percolate Query 是先定义检索规则，再把数据读入，找符合检索规则的数据，这样理解正确吗？ 下面url请参考 https://www.elastic.co/guide/en/elasticsearch/reference/master/query-dsl-percolate-query.html#\_sample\_usage 先问一个问题，检索的时候只能一条一条检索吗？（也就是一个id一个id的检索吗？） GET /…

---

## [关于Elasticsearch nightly benchmarks](https://discuss.elastic.co/t/elasticsearch-nightly-benchmarks/54020)

<div class="topic-metadata">

**Author:** [@jerry](https://discuss.elastic.co/u/jerry)\
**Replies:** 5\
**Last updated:** [July 21, 2016, 5:57am UTC](https://discuss.elastic.co/t/elasticsearch-nightly-benchmarks/54020 "2016-07-21T05:57:49Z")

</div>

怎么看出来测试的是那个版本？ https://benchmarks.elastic.co/index.html

---

## [感觉 kibana统计的时候 数据不是很准](https://discuss.elastic.co/t/kibana/49797)

<div class="topic-metadata">

**Author:** [@jixiuf](https://discuss.elastic.co/u/jixiuf)\
**Replies:** 3\
**Last updated:** [July 5, 2016, 3:29pm UTC](https://discuss.elastic.co/t/kibana/49797 "2016-07-05T15:29:17Z")

</div>

deployer@iZ94badqop7Z zjh/es $ curl 'localhost:9200/\_cat/indices' yellow open zjh\_login\_2016-19 5 1 274 0 286.9kb 286.9kb 我用curl 查看，发现 zjh\_login\_2016-19 下面共有274条数据 。 而从kibana 界面 用 查询 index : "zjh\_login" 只有一条数据 。 时…

---

## [当前的discuss 论坛是用什么软件实现的？有没有开源代码？](https://discuss.elastic.co/t/discuss/52936)

<div class="topic-metadata">

**Author:** [@moryaden](https://discuss.elastic.co/u/moryaden)\
**Replies:** 2\
**Last updated:** [June 27, 2016, 12:11pm UTC](https://discuss.elastic.co/t/discuss/52936 "2016-06-27T12:11:59Z")

</div>

当前的discuss 论坛是用什么软件实现的？有没有开源代码？

---

## [Logstash 抛错 code: 429](https://discuss.elastic.co/t/logstash-code-429/47109)

<div class="topic-metadata">

**Author:** [@guanguan\_wp](https://discuss.elastic.co/u/guanguan_wp)\
**Replies:** 3\
**Last updated:** [April 13, 2016, 7:16am UTC](https://discuss.elastic.co/t/logstash-code-429/47109 "2016-04-13T07:16:01Z")

</div>

搭建elk日志收集，两台es服务做集群。 logstash的配置为 output { if \[type\] =="union\_user" { elasticsearch { hosts =\> \["10.10.1.167:9200","10.10.1.166:9200"\] index =\> "union\_user-%{+YYYY-MM-dd}" } stdout { codec =\> "json" …

---

## [Logstash使用fingerprint插件去重复出现问题](https://discuss.elastic.co/t/logstash-fingerprint/42327)

<div class="topic-metadata">

**Author:** [@jiangzhifang](https://discuss.elastic.co/u/jiangzhifang)\
**Replies:** 3\
**Last updated:** [March 27, 2016, 2:17am UTC](https://discuss.elastic.co/t/logstash-fingerprint/42327 "2016-03-27T02:17:06Z")

</div>

我是新手，可能有些细节描述不清楚，请大家耐心看完。我的测试环境如下： 1)elasticsearch版本2.2.0，安装目录/opt/elasticsearch 2)logstash版本2.2.2，安装目录/opt/logstash 3)测试文件为/tmp/test\_file，内容只有一行 {"b":{"b1":0.0}} 4)logstash的配置文件内容 input { file { path =\> \["/tmp/t…

---

## [Replica Shard 也能提升aggregation的效率吗？](https://discuss.elastic.co/t/replica-shard-aggregation/42446)

<div class="topic-metadata">

**Author:** [@Kramer\_Li](https://discuss.elastic.co/u/Kramer_Li)\
**Replies:** 3\
**Last updated:** [March 2, 2016, 4:59pm UTC](https://discuss.elastic.co/t/replica-shard-aggregation/42446 "2016-03-02T16:59:06Z")

</div>

Hi I know Replica Shard can help to improve search. But how about aggregation? Aggregation is based on field data or Doc Value. So I\`m not sure if the replica shard (which is inverted index) will help aggregation also? …

---

## [How can i change the score](https://discuss.elastic.co/t/how-can-i-change-the-score/39048)

<div class="topic-metadata">

**Author:** [@LDA-MAN](https://discuss.elastic.co/u/LDA-MAN)\
**Replies:** 2\
**Last updated:** [January 14, 2016, 3:28am UTC](https://discuss.elastic.co/t/how-can-i-change-the-score/39048 "2016-01-14T03:28:51Z")

</div>

this is my input text. and the result.. this is not what i want! i think the 'last ' should in first ， how can i change the score this is the tf-idf "hits" : { "total" : 4353, "max\_score" : 2.576459, "hits" : …

---

## [Elasticsearch 2.1.0版本 buck index过程中出现异常](https://discuss.elastic.co/t/elasticsearch-2-1-0-buck-index/38719)

<div class="topic-metadata">

**Author:** [@James\_Kelvin](https://discuss.elastic.co/u/James_Kelvin)\
**Replies:** 2\
**Last updated:** [January 11, 2016, 7:40am UTC](https://discuss.elastic.co/t/elasticsearch-2-1-0-buck-index/38719 "2016-01-11T07:40:25Z")

</div>

Continuing the discussion from About the 中文提问与讨论 category: 版本信息： elasticsearch 2.1.0 启动内存 20g JDK: 1.8.0\_66 场景： 采用BulkProcessor插入数据，buckSize = 5M （之前版本1.7.X，一直运行良好） 异常信息如下： \[2016-01-08 17:45:19,733\]\[DEBUG\]\[action.b…

---

## [2016新版 Blog页面样式看着可舒服？](https://discuss.elastic.co/t/2016-blog/38460)

<div class="topic-metadata">

**Author:** [@arron](https://discuss.elastic.co/u/arron)\
**Replies:** 1\
**Last updated:** [January 11, 2016, 7:20am UTC](https://discuss.elastic.co/t/2016-blog/38460 "2016-01-11T07:20:44Z")

</div>

分类清晰挺好的， 但是排版看起来太不如之前的看起来简单明了了，不喜欢啊

[Previous page](https://discuss.elastic.co/c/in-your-native-tongue/chinese/46.md?page=4)
