Comments (9)
@EverCurse ,看起来是6.0+的版本不支持这种语法了
如果输出从
{"query" : {"bool" : {"must" : [{"match" : {"remote_addr" : {"query" : "111.206.36.1", "type" : "phrase"}}}]}},"from" : 0,"size" : 10}
改成
{"query" : {"bool" : {"must" : [{"match_phrase" : {"remote_addr" : {"query" : "111.206.36.1"}}}]}},"from" : 0,"size" : 10}
会报错么
from elasticsql.
@cch123 这样就不会报错了 有兼容6.0+的计划吗
from elasticsql.
@EverCurse ,好,我先看看 match_phrase 在之前和之后的版本间有没有语义变化,要是没变化就统一改一下,有的话可能另开一个函数
另,我手边木有 6.0 的实际环境,可能到时候也需要帮忙试一下是否 ok~
from elasticsql.
@EverCurse ,看了看老文档里的 match type phrase 和 match_phrase 一致,我先改了一版~
已更新到 master
from elasticsql.
@cch123 感谢。需要的时候@一下随时测试。
from elasticsql.
@EverCurse ,我已经改了~
你如果再碰到异常再回复就好~
from elasticsql.
@cch123 感谢~
from elasticsql.
@cch123 大神原来是advanced-go-programming-book 作者呀 。👍
from elasticsql.
@EverCurse ,低调低调~
from elasticsql.
Related Issues (20)
- support more graceful missing check
- support aggregation alias
- support nested doc query
- date_histogram转换DSL有问题? HOT 1
- 有版本支持列表吗? HOT 1
- Is the example correct? HOT 2
- 你这个能不能做一个客户端 HOT 1
- Large Query HOT 3
- multi_match与match_phrase的区别 HOT 6
- 不支持bigint 值比较 HOT 1
- Multiple Group by errors HOT 3
- convert error : nend convert select sql fields to json fields like `"_source":["title", "price"]` HOT 2
- 支持这种子查询吗? HOT 1
- 能否支持escape? HOT 3
- sql translate 咨询 HOT 1
- nest HOT 3
- How can I do the vice-versa operation? HOT 1
- Does this library have the capability to perform a conversion from DSL to SQL? HOT 1
- 建议在Convert的时候,可以加入json pretty输出 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elasticsql.