elasticsearch - 如何在弹性搜索中的 Rest 高级客户端中传递 json 查询
问题描述
在用于检索数据的弹性搜索中,我尝试通过apache http client
and 传递 json 查询elastic search rest high level client
,是否有任何其他灵活的方法可以使用 java API 传递 json 查询???任何帮助将不胜感激提前谢谢
String query="";
SearchModule searchModule..
XContentParser parser = XContentFactory.xContent(XContentType.JSON).createParser(new NamedXContentRegistry(searchModule
.getNamedXContents()), query)
解决方案
推荐阅读
- javascript - 反应文本输入的本地国家代码前缀
- television - WEBOS LG TV: ares-inspect WARN Session#forward() 转发客户端 localPort: 0 => devicePort: 9998 失败
- c++ - 从容器中移动元素不会清空容器?
- javascript - 如果找到某个 url,则使用 FS 写入新文件,如果不再找到,则删除该文件
- selenium - 第二次执行鼠标操作时,我得到 MoveTargetOutOfBounds Exeption
- azure - 如何在另一个 Active Directory 订阅中保存 Azure Synapse SQL 池(数据仓库)的快照?
- python - 如何从内存、字节码加载模块或加载后清理
- c# - GitVersionTask 需要手动标记主提交
- python - 不理解 ML 中的 plt.plot(train_x, regr.coef_[0][0]*train_x + regr.intercept_[0], '-r')
- python - 为什么地板除法返回一个浮点数而不是一个整数