Skip to content

Facet search + Entity result #353

@jeremy-ritec

Description

@jeremy-ritec

Context
Currently if you want your results to be hydrated by doctrine, you would use search, but without facet results. And if you want facet results, you'd use rawSearch, but the hits would not be hydrated. So you'll need to perform two requests to get both results.

Description
Can we have a method or an option, that combines raw results from the engine with the hydrated entities from doctrine.

Basic example
$this->searchService->search($em, Entity::class,$q, $options, $fieldsToRetrieve) , where $fieldsToRetrieve is an array of strings, like ['hits','facetDistribution', 'estimatedTotalHits']

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions