asereda-gs commented on issue #1530: [CALCITE-3437] ElasticSearch adapter. 
Support MatchQuery in elasticse…
URL: https://github.com/apache/calcite/pull/1530#issuecomment-547132075
 
 
   @shlok7296 pls take a look at 
[ElasticSearchAdapterTest](https://github.com/apache/calcite/blob/master/elasticsearch/src/test/java/org/apache/calcite/adapter/elasticsearch/ElasticSearchAdapterTest.java).
 
   
   ```java
   public void example() {
   calciteAssert()
           .query("select city from zips where city contains 'YORK' ")
           .returnsUnordered("state=NY; city=NEW YORK",
   // ... 
             );
   }
   ```
   
   You can validate both query being sent to elastic (via `.queryContains()`) 
as well as JSON result (using `returnsUnordered()`).

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to