[
https://issues.apache.org/jira/browse/CALCITE-3437?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andrei Sereda resolved CALCITE-3437.
------------------------------------
Resolution: Fixed
> Elasticsearch Match query is not supported
> ------------------------------------------
>
> Key: CALCITE-3437
> URL: https://issues.apache.org/jira/browse/CALCITE-3437
> Project: Calcite
> Issue Type: Improvement
> Components: elasticsearch-adapter
> Reporter: Shikha Somani
> Priority: Major
> Labels: QueryBuilder, calcite, elasticsearch, match,
> pull-request-available
> Time Spent: 3h 50m
> Remaining Estimate: 0h
>
> Currently, Calcite only builds "term" queries for text fields on
> elasticsearch. It doesn't support
> [Match|[https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-match-query.html]]
> queries due to which _full-text_ or _contains_ search is not allowed.
> Expected query:
> {code:java}
> {
> "query": {
> "constant_score": {
> "filter": {
> "match": {
> "name": "Customer Name"
> }
> }
> }
> }
> }
> {code}
>
> Expected behavior:
> For SqlStdOperatorTable.CONTAINS, calcite should build _match_ query.
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)