Github user bbonnin commented on the pull request:

    https://github.com/apache/incubator-zeppelin/pull/520#issuecomment-162837690
  
    Thanks to all for your comments!
    
    About the DSL, my goal was not reinvent the wheel, but just provide a 
simple way to access Elasticsearch.
    I wanted to be closer to the Java API that provides classes such as 
GetRequest, CountRequest, SearchRequest, DeleteRequest, ...
    So, I have just reused these concepts.
    The query you can provide for some commands (search, for example) is 
exactly what you can provide to Elasticsearch, nothing more, nothing less.
    
    The main problem is how to handle the json documents returned by 
Elasticsearch.
    I have decided to flatten the json document.
    If you have:
    ```json
    {
        "field1": "value1",
        "field2": {
                "field3":"value3",
                "field4":[1,3]
        }
    }
    ```
    You will get a something like this:
     
    field1 | field2.field3 | field2.field4[0] | field2.field4[1]
    ------- | -------------- | ------------------ | -----------------
    value1 | value3         | 1                |2
    
    I will fix the code in this way, are you ok ?
    
    Bruno



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to