Skip to content

[Implemented] Allow aggregation results with rawSearch #24

@kenken-vpl

Description

@kenken-vpl

Is your feature request related to a problem? Please describe.

Want to perform aggregation type: date_histogram

Describe the solution you'd like

Looks like only rawSearch() can perform a "date_histogram" aggregation. However, Bridge::processSearchRaw() filters the result using _sanitizeSearchResponse().

Describe alternatives you've considered

Manually changed Bridge::processSearchRaw() to return the aggregations instead.

Additional context

    if (! empty($process['aggregations'])) {
        $meta['timed_out'] = $process['timed_out'];
        $meta['total'] = $process['hits']['total']['value'] ?? 0;
        $meta['max_score'] = $process['hits']['max_score'] ?? 0;
    
        return $this->_return($process['aggregations'], $meta, $params, $this->_queryTag(__FUNCTION__));
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions