Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/solr/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
<img src="//i.stack.imgur.com/RUiNP.png" height="16" width="18" alt="" class="sponsor tag img">elasticsearch 弹性搜索查询运算符_<img Src="//i.stack.imgur.com/RUiNP.png" Height="16" Width="18" Alt="" Class="sponsor Tag Img">elasticsearch - Fatal编程技术网 elasticsearch 弹性搜索查询运算符,elasticsearch,elasticsearch" /> elasticsearch 弹性搜索查询运算符,elasticsearch,elasticsearch" />

elasticsearch 弹性搜索查询运算符

elasticsearch 弹性搜索查询运算符,elasticsearch,elasticsearch,是否有一种方法可以使用文档中的URL查询elasticsearch。我在ES中为产品详细信息及其URL编制了索引。比如说, 在q参数中,我需要传递要从索引中检索的文档的链接 更新: 我想使用文档中的产品URL进行搜索。这是我的样本数据 “产品url”:“url” “图像url”:“url” “标题”:“维拉-王-公主-化妆品-100-55ml” “附属公司url”:“产品的url” “价格1”:3669.50 “价格2”:3929 如果产品url中没有=,则它工作,但如果有=,则显示null。

是否有一种方法可以使用文档中的URL查询elasticsearch。我在ES中为产品详细信息及其URL编制了索引。比如说,

在q参数中,我需要传递要从索引中检索的文档的链接

更新:

我想使用文档中的产品URL进行搜索。这是我的样本数据

“产品url”:“url”

“图像url”:“url”

“标题”:“维拉-王-公主-化妆品-100-55ml”

“附属公司url”:“产品的url”

“价格1”:3669.50

“价格2”:3929

如果产品url中没有=,则它工作,但如果有=,则显示null。我想知道如何在搜索操作中传递产品url。我正在使用下面的URI搜索文档。
//


提前感谢。

您能展示一个示例文档以及您为URL数据编制索引的字段的映射吗?最好更新您的问题。
elasticsearch中的保留字符是:+-=&&&&&&&&|><!(){}[]^“~*?:\/
…您需要对这些字符进行转义…我也尝试了\infort of=但仍然不起作用。