Fixed
Details
Assignee
Gunnar MorlingGunnar MorlingReporter
Sanne GrinoveroSanne GrinoveroComponents
Fix versions
Priority
Blocker
Details
Details
Assignee
Gunnar Morling
Gunnar MorlingReporter
Sanne Grinovero
Sanne GrinoveroComponents
Fix versions
Priority
Created February 23, 2016 at 6:31 PM
Updated May 21, 2016 at 6:43 PM
Resolved May 12, 2016 at 12:55 PM
We're currently exposing both a
org.hibernate.search.backend.elasticsearch.ProjectionConstants
and aorg.hibernate.search.engine.ProjectionConstants
.It's not nice to have two classes in the public API which have the same name, as the package difference isn't very clear when reading code.
Should we simply expose the Elasticsearch specific projection constants in the parent class?
Should we make these options somehow better errorprone, maybe via typesafety, to prevent using a constant which isn't accepted?
At the very least we should verify that the non-Elasticsearch backend recognises the constants currently defined on
org.hibernate.search.backend.elasticsearch.ProjectionConstants
and warns about a possible mistake. I believe it would currently attempt to load a stored field having the name of the constant value.