xpleaf opened a new pull request #1184: [CALCITE-3027] Support like query in 
Elasticsearch
URL: https://github.com/apache/calcite/pull/1184
 
 
   In Elasticsearch, fuzzy matching is implemented by wildcard query:
   ```
   GET /company/_search
   {
     "query": {
       "constant_score": {
         "filter": {
           "wildcard":{
             "name_text":"*Alle_"
           }
         }
       }
     }
   }
   ```
   > The symbols % and _ in sql are equivalent to the symbols * and ? in es, 
respectively.
   
   So in this PR, I added a new QueryBuilder called WildcardQueryBuilder to 
support wildcard queries, then to achieve like query in sql.
   JIRA: https://issues.apache.org/jira/projects/CALCITE/issues/CALCITE-3027

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to