Yoann Rodière (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *updated* an issue
Hibernate Search (
https://hibernate.atlassian.net/browse/HSEARCH?atlOrigin=eyJpIjoiMDI4MDlm...
) / Task (
https://hibernate.atlassian.net/browse/HSEARCH-3909?atlOrigin=eyJpIjoiMDI...
) HSEARCH-3909 (
https://hibernate.atlassian.net/browse/HSEARCH-3909?atlOrigin=eyJpIjoiMDI...
) Restore support for looking up the capabilities of each field in the metamodel (
https://hibernate.atlassian.net/browse/HSEARCH-3909?atlOrigin=eyJpIjoiMDI...
)
Change By: Yoann Rodière (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
I.e. we need a way to know which predicates/sorts/projections/etc. are available for a
given field. This will make it possible to implement something similar to jpamodelgen,
where classes are generated at compile-time to represent the index metamodel and can be
used in the Search DSL (something that's been [requested
before|https://discourse.hibernate.org/t/hsearch-metamodel/3915]).
There was (limited) support for that in Search 5, through
{{org.hibernate.search.metadata.FieldSettingsDescriptor#getType}},
{{org.hibernate.search.metadata.FieldSettingsDescriptor#getIndex}},
{{org.hibernate.search.metadata.FieldSettingsDescriptor#getStore}}.
An interesting way to implement this would be through a {{hasCapability(String)}} methods,
where the string is the name of a given capability: match predicate, "within
circle" predicate, "field value" sort, "distance" sort, ... Names
would be exposed as constants in some {{BuiltinCapabilities}} class, and more importantly
**each backend could define additional constants for its extended capabilities**. This
would be very similar to what is described in HSEARCH-3633 for field configuration.
This ticket is a follow-up on HSEARCH-3589.
(
https://hibernate.atlassian.net/browse/HSEARCH-3909#add-comment?atlOrigin...
) Add Comment (
https://hibernate.atlassian.net/browse/HSEARCH-3909#add-comment?atlOrigin...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100125- sha1:927dd36 )