liugddx commented on issue #22400:
URL: https://github.com/apache/doris/issues/22400#issuecomment-1829156257

   > > 还有更奇怪的
   > > CREATE CATALOG es PROPERTIES ( "type"="es", "hosts"="http://ip:9200";, );
   > > esquery查询语句
   > > select * from test where esquery(k4, '{ "match_phrase": { "k4": "doris 
on es" } }');
   > > 报错: [CANCELLED][NOT_IMPLEMENTED_ERROR]esquery only supported on es table
   > > 文档内不是支持 扩展的 esquery? 
https://doris.apache.org/zh-CN/docs/lakehouse/multi-catalog/es/#%E6%89%A9%E5%B1%95%E7%9A%84-esqueryfield-querydsl
   > 
   > ```
   > PUT test
   > {
   >    "settings": {
   >       "index": {
   >          "number_of_shards": "1",
   >          "number_of_replicas": "0"
   >       }
   >    },
   >   "mappings": {
   >     "properties": {
   >       "k1": {
   >         "type": "long",
   >         "index": "true"
   >       },
   >       "k2": {
   >         "type": "date",
   >         "format": "yyyy-MM-dd"
   >       },
   >       "k3": {
   >         "type": "text",
   >         "analyzer": "ik_max_word",
   >         "search_analyzer": "ik_max_word"
   >       },
   >       "k4": {
   >         "type": "text",
   >         "analyzer": "ik_max_word",
   >         "search_analyzer": "ik_max_word"
   >       },
   >       "k5": {
   >         "type": "float"
   >       }
   >     }
   >   }
   > }
   > ```
   > 
   > @liugddx
   
   
![image](https://github.com/apache/doris/assets/48236177/deeec61c-dc24-4aa0-af3b-36fa597ffbb0)
   
   use 2.0.3 version


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to