Closed jacgeo111 closed 4 years ago
What is the value of index_name
and does it match the records rest index name?
Aggregations are passed directly to ES without any modifications.
To debug the query going to Elasticsearch, you can put a breakpoint here. The search
variable is an Elasticsearch DSL object, and to see the ES query simply do:
print(search.to_dict())
See details
I have a simular problem and I got following error from elasticsearch_dsl/aggs.py
ValueError: A() can only accept dict with an aggregation ({"terms": {...}}). Instead it got ...
I think also if you like to see the query you have to change following file: https://github.com/inveniosoftware/invenio-records-rest/blob/master/invenio_records_rest/facets.py#L167 as mentioned above.
Elasticsearch supports the below composite aggregation. But when add the below aggregation in invenio, it does not working.
The invenio configuration was specified below.
Is Invenio supports all the Elasticsearch aggregation methods?