从v2.0开始,Elasticsearch默认只在localhost上侦听,但我想在localhost之外发出请求.
例如,允许这样的请求:
http://localhost:9200/
但这不是:
http://server_name:9200/ (来自服务器外部,例如:同一LAN中的本地计算机).
谢谢你的帮助.
我正在使用Jenkins配置CI构建服务器.在构建步骤之后,我想部署网站.
从Web Deploy发布的VisualStudio发布网站时.我喜欢这种方法,因为它实际上发布了那些已经改变的文件,所以部署非常快.
现在在构建服务器上我正在尝试做同样的事情:构建应用程序(使用MSBuild.exe),然后部署应用程序(使用MSDeploy.exe?).
我已经看到他们使用MSBuild.exe和其他人使用部署应用程序的一些帖子MSDeploy.exe,那里有显着的差异吗?
你有什么建议可以帮助吗?
谢谢,先进.
我有一个Elasticsearch索引,我有一些数据.我实现和did-you-mean功能,所以当用户写错拼写的东西时,它可以收到带有正确单词的建议.
我使用短语建议,因为我需要短语的建议,例如名称,问题是索引中不存在一些建议.
例:
document in the index: coding like a master
search: Codning like a boss
suggestion: <em>coding</em> like a boss
search result: not found
Run Code Online (Sandbox Code Playgroud)
我的问题是,我的索引中没有符合指定建议的短语,所以它建议我不存在的短语,因此会给我一个未找到的搜索.
我该怎么办?不应该短语建议者为索引中实际存在的短语提供建议吗?
在这里,我将保留相应的查询,映射和设置,以防万一你需要它.
设置和映射
{
"settings": {
"index": {
"number_of_shards": 3,
"number_of_replicas": 1,
"search.slowlog.threshold.fetch.warn": "2s",
"index.analysis.analyzer.default.filter.0": "standard",
"index.analysis.analyzer.default.tokenizer": "standard",
"index.analysis.analyzer.default.filter.1": "lowercase",
"index.analysis.analyzer.default.filter.2": "asciifolding",
"index.priority": 3,
"analysis": {
"analyzer": {
"suggests_analyzer": {
"tokenizer": "lowercase",
"filter": [
"lowercase",
"asciifolding",
"shingle_filter"
],
"type": "custom"
}
},
"filter": {
"shingle_filter": {
"min_shingle_size": 2,
"max_shingle_size": 3,
"type": "shingle" …Run Code Online (Sandbox Code Playgroud)