문제

Elastic Search does not currently (as of 0.18.4) support field collapsing. Is there a good way to simulate this, as to avoid N search queries?

도움이 되었습니까?

해결책

Probably not the answer you're looking for but: As far as I know, and according to this ticket, the only real workaround is to select a larger result set and group on the client side.

다른 팁

Depending on what your use case is you might find parent/child support or nested types useful instead.

You can find more about parent/child support here: https://github.com/elasticsearch/elasticsearch/issues/553 (and then in corresponding query/filter doc pages)

As for nested types, check here: http://www.elasticsearch.org/guide/reference/mapping/nested-type.html

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top