You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Shlok Srivastava (Jira)" <ji...@apache.org> on 2020/09/24 08:03:00 UTC

[jira] [Updated] (CALCITE-4270) Elasticsearch Collapse Query is not supported

     [ https://issues.apache.org/jira/browse/CALCITE-4270?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shlok Srivastava updated CALCITE-4270:
--------------------------------------
    Description: 
Allows to collapse search results based on field values. The collapsing is done by selecting only the top sorted document per collapse key. This can be used while querying on multi-indices and get top sorted results.

Query for collapse - 
{"query": {"match": {"message": "elasticsearch"}},"collapse" : {"field" : "user" 
    }}
 

Currently we can query on multiple indices via calcite but collapse is not supported - [https://www.elastic.co/guide/en/elasticsearch/reference/6.8/search-request-collapse.html]

  was:Currently collapse queries are not supported with search API  - https://www.elastic.co/guide/en/elasticsearch/reference/6.8/search-request-collapse.html


> Elasticsearch Collapse Query is not supported 
> ----------------------------------------------
>
>                 Key: CALCITE-4270
>                 URL: https://issues.apache.org/jira/browse/CALCITE-4270
>             Project: Calcite
>          Issue Type: Improvement
>          Components: elasticsearch-adapter
>            Reporter: Shlok Srivastava
>            Priority: Major
>              Labels: QueryBuilder, calcite, collapse, elasticsearch
>
> Allows to collapse search results based on field values. The collapsing is done by selecting only the top sorted document per collapse key. This can be used while querying on multi-indices and get top sorted results.
> Query for collapse - 
> {"query": {"match": {"message": "elasticsearch"}},"collapse" : {"field" : "user" 
>     }}
>  
> Currently we can query on multiple indices via calcite but collapse is not supported - [https://www.elastic.co/guide/en/elasticsearch/reference/6.8/search-request-collapse.html]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)