Git Product home page Git Product logo

Comments (9)

cch123 avatar cch123 commented on August 30, 2024

@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.

EverCurse avatar EverCurse commented on August 30, 2024

@cch123 这样就不会报错了 有兼容6.0+的计划吗

from elasticsql.

cch123 avatar cch123 commented on August 30, 2024

@EverCurse ,好,我先看看 match_phrase 在之前和之后的版本间有没有语义变化,要是没变化就统一改一下,有的话可能另开一个函数

另,我手边木有 6.0 的实际环境,可能到时候也需要帮忙试一下是否 ok~

from elasticsql.

cch123 avatar cch123 commented on August 30, 2024

@EverCurse ,看了看老文档里的 match type phrase 和 match_phrase 一致,我先改了一版~
已更新到 master

from elasticsql.

EverCurse avatar EverCurse commented on August 30, 2024

@cch123 感谢。需要的时候@一下随时测试。

from elasticsql.

cch123 avatar cch123 commented on August 30, 2024

@EverCurse ,我已经改了~
你如果再碰到异常再回复就好~

from elasticsql.

EverCurse avatar EverCurse commented on August 30, 2024

@cch123 感谢~

from elasticsql.

EverCurse avatar EverCurse commented on August 30, 2024

@cch123 大神原来是advanced-go-programming-book 作者呀 。👍

from elasticsql.

cch123 avatar cch123 commented on August 30, 2024

@EverCurse ,低调低调~

from elasticsql.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.