- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
下面的示例已在es 2.3和1.7上调用。
首先,我安装了插件:https://www.elastic.co/guide/en/elasticsearch/plugins/current/analysis-stempel.html#analysis-stempel
接下来,我的步骤是检查正确安装的插件:
屏幕显示结果:
Installed plugins in /home/adam/Desktop/elasticsearch-2.3.0/plugins:
- analysis-stempel
- marvel-agent
- license
curl -XPUT localhost:9200/my_index -d '{
"mappings": {
"blog": {
"properties": {
"title": {
"type": "string",
"fields": {
"polish": {
"type": "string",
"analyzer": "polish"
}
}
}
}
}
}
}
'
curl -XPUT localhost:9200/my_index/blog/1 -d
'{ "title": "Bardzo kocham zółwie"}'
curl -XGET localhost:9200/_search -d
'{
"query": {
"multi_match": {
"type": "most_fields",
"query": "zółwie",
"fields": [ "title", "title.polish" ]
}
}
}
'
curl -XGET localhost:9200/_search -d
'{
"query": {
"multi_match": {
"type": "most_fields",
"query": "zolwie",
"fields": [ "title", "title.polish" ]
}
}
}'
最佳答案
第二个查询需要的是 asciifolding
token filter。我建议使用以下映射,以涵盖更多用例:
{
"settings": {
"analysis": {
"analyzer": {
"folding": {
"tokenizer": "standard",
"filter": [
"lowercase",
"asciifolding"
]
}
}
}
},
"mappings": {
"blog": {
"properties": {
"title": {
"type": "string",
"fields": {
"folding": {
"type": "string",
"analyzer": "folding"
},
"polish": {
"type": "string",
"analyzer": "polish"
}
}
}
}
}
}
}
{
"query": {
"multi_match": {
"type": "most_fields",
"query": "zolwie",
"fields": [
"title.*"
]
}
}
}
关于elasticsearch - Stempel Polish Analysis插件作为Elasticsearch的插件不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38907249/
现在,我们计划使用 j2me 开发一个移动应用程序。 对于 UI,我们选择了像 这样的框架。 LWUIT,J2me-polish ,等等。 最后我们决定 LWUIT 或 J2me-polish。 我的
我正在尝试启动并运行 J2ME Polish 示例项目,但很困难。 我正在使用带有 J2ME Polish 插件的 Netbeans 8.0.2。 当我尝试创建 J2ME Polish 项目 ( Fi
下面的示例已在es 2.3和1.7上调用。 首先,我安装了插件:https://www.elastic.co/guide/en/elasticsearch/plugins/current/analys
这是反向波兰符号的代码。当我在 unix 上运行它时它工作正常但 codechef 说错了答案。请帮忙。 #include #include void push(char); void pop();
我正在 J2ME 中开发移动应用程序。现在我将其转换为 J2ME Polish。在我的应用程序中,我使用手机中的相机拍摄照片。它在 J2ME 中运行良好。但它在 J2ME Polish 中不能正常工作
如何配置图标的大小以正确适应多个移动设备? 基于J2ME Polish documentation ,我正在使用以下 resources 文件夹结构: IconSize.15x15\icon.png
在我的 qt5 应用程序初始化时,QApplication 实例提供了一个继承自 QProxyStyle 的自定义样式类。 此类重写了void polish(QPalette &palette) 函数
我很确定,堆栈用于构建 PRN,'(' 被忽略,但情况似乎并非如此。例如: 输入 1:52+(1+2)*4-3 输入 2: 52+((1+2)*4)-3 输入3: (52+1+2)*4-3 输入 1
据我所知,堆栈机有两种,即 RPN 和 PN,那么 WebAssembly 是一个“逆波兰表示法”计算器吗? 最佳答案 堆栈机与逆波兰表示法 (RPN) 或波兰表示法 (PN) 之间没有直接联系。您必
我已成功下载并安装了 j2me Polish,并尝试创建项目,但存在引用问题,显示指定的文件夹不包含 java 平台,但它可以成功地与正常项目一起使用 而不是抛光使用哪个 LWUIT? 最佳答案 要使
我刚刚开始使用样式化组件、抛光和样式化 Prop 。 我正在尝试使用 styledProps 来为组件设置样式,如下所示...... Primary Button Danger Button Succ
LeetCode OJ题Evaluate Reverse Polish Notation我写了如下代码 int evalRPN(vector& tokens) { int n = tokens
我写了一些基本程序,我想提取波兰语单词的引理,这是非常重要的,因为波兰语使用屈折变化。 我正在创建一个简单的程序来加载数据并将单词转换为引理,但不知道该怎么做: from nltk import co
Dev Bootcamp 的作业前练习之一是 RPN 计算器。我成功了,但想要重构反馈。非常感谢任何有助于使此代码更清晰的帮助。 class RPNCalculator def evaluate(
我正在开发 j2me Polish 2.1.4,我想使用 LUSH UI 进行 symbian 移动应用程序开发。我在当前版本的 j2me Polish 中找不到任何内容。 当我使用网站上的CSS时(
我一直在尝试使用动态分配的堆栈来完成 K&R 的练习 5-10。我的代码基于第 4 章的代码(他们使用全局变量来实现堆栈)。问题是我的程序根本不起作用,我不知道出了什么问题。代码如下: /* expr
根据 K&R,反向波兰计算器,减少了主要功能,以便更好地理解: #include #include #define NUMBER '0' #define MAXOP 5 void push(d
我是一名优秀的程序员,十分优秀!