Allow projections on fields by default with the Elasticsearch backend

Description

With Elasticsearch, projectable = Projectable.YES really is just ceremony, since it has no effect on the Elasticsearch mapping and only enables projections in Hibernate Search itself.

While consistency between backends is a good thing, in this case we’re just adding limitations to the Elasticsearch backend for the sake of consistency, so I don’t think it’s worth it.

We should:

  • Define Projectable.DEFAULT as Projectable.YES in Elasticsearch

  • Change integration tests accordingly (for the Elasticsearch backend, projections will always work except when using Projectable.NO)

  • Update documentation accordingly: javadoc (SearchProjectionFactory, Projectable.DEFAULT, etc.) and reference documentation (projectable + projection DSL).

Activity

Show:
Fixed

Details

Assignee

Reporter

Components

Fix versions

Priority

Created May 10, 2022 at 8:28 AM
Updated July 4, 2022 at 7:01 AM
Resolved May 19, 2022 at 2:20 PM