0 order by modifiedOn desc", "fetch_size": 10}结果如下:{ "size" : 10, "query" : { "range" : { "upCount" : { "from" : 0, "to"._elasticsearch7.0">
当前位置:   article > 正文

Elasticsearch 如何把SQL转换为DSL_elasticsearch7.0 java sql翻译成dsl

elasticsearch7.0 java sql翻译成dsl

命令:

POST /_sql/translate
{
  "query":"select title,content from knowledge where upCount > 0 order by modifiedOn desc",
  "fetch_size": 10
}
  • 1
  • 2
  • 3
  • 4
  • 5

结果如下:

{
   
  "size" : 10,
  "query" : {
   
    "range" 
  • 1
  • 2
  • 3
  • 4
  • 5
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/秋刀鱼在做梦/article/detail/941690
推荐阅读
相关标签
  

闽ICP备14008679号