Yoann Rodière (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *updated* an issue
Hibernate Search (
https://hibernate.atlassian.net/browse/HSEARCH?atlOrigin=eyJpIjoiM2ZhODky...
) / Improvement (
https://hibernate.atlassian.net/browse/HSEARCH-3327?atlOrigin=eyJpIjoiM2Z...
) HSEARCH-3327 (
https://hibernate.atlassian.net/browse/HSEARCH-3327?atlOrigin=eyJpIjoiM2Z...
) Add options for match predicates targeting multiple fields (
https://hibernate.atlassian.net/browse/HSEARCH-3327?atlOrigin=eyJpIjoiM2Z...
)
Change By: Yoann Rodière (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
*Note*: This is slightly different from [ HSEARCH-917 ] and
[
https://hibernate.atlassian.net/browse/ HSEARCH-2589
|https://hibernate.atlassian.net/browse/HSEARCH-2589|smart-link] , though related. This
ticket is about the behavior when a single predicate target multiple fields, while the
others are about the behavior when a single predicate has multiple search terms.
We should offer additional parameters to match predicates allowing to select exactly how
we want the predicate to behave when multiple fields are targeted:
* how documents are matched: at least one match is required per field, or at least one on
any field, ...
* how score is computed.
We will probably have to move the handling of multiple fields to the backend layer, i.e.
not create a boolean junction in the engine and ask the backend to create one predicate
for each field, but instead just ask the backend to create a single predicate for *all*
the fields.
See for example the “multi-match” query in Elasticsearch:
[
https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl...
|https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-multi-match-query.html]
And in particular the "type" parameter: [
https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl...
|https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-multi-match-query.html#multi-match-types]
(
https://hibernate.atlassian.net/browse/HSEARCH-3327#add-comment?atlOrigin...
) Add Comment (
https://hibernate.atlassian.net/browse/HSEARCH-3327#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#100228- sha1:e911e2c )