Skip to content

use routing and preference of original SearchRequest in collapse innerhits requests #27079

@jgaedicke

Description

@jgaedicke

We use the collapse feature with inner_hits as described here : https://www.elastic.co/guide/en/elasticsearch/reference/5.6/search-request-collapse.html

Is there a reason why the routing and preference settings of the main search request are not used for the inner hit queries. I think it would be a valid optimization to preserve these settings.

see org.elasticsearch.action.search.ExpandSearchPhase

SearchRequest groupRequest = new SearchRequest(searchRequest.indices())

Metadata

Metadata

Assignees

Labels

:Search/SearchSearch-related issues that do not fall into other categories

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions