This is an automated email from the ASF dual-hosted git repository. ilgrosso pushed a commit to branch 3_0_X in repository https://gitbox.apache.org/repos/asf/syncope.git
The following commit(s) were added to refs/heads/3_0_X by this push: new 5052cf5715 Fixing Elasticsearch multi match query for Audit searches 5052cf5715 is described below commit 5052cf57158cb81129a8f77775815e0955404a3e Author: Francesco Chicchiriccò <ilgro...@apache.org> AuthorDate: Thu Mar 30 11:49:32 2023 +0200 Fixing Elasticsearch multi match query for Audit searches --- .../syncope/core/persistence/jpa/dao/ElasticsearchAuditConfDAO.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/elasticsearch/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/dao/ElasticsearchAuditConfDAO.java b/ext/elasticsearch/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/dao/ElasticsearchAuditConfDAO.java index bbe3a8537a..2abc1d997c 100644 --- a/ext/elasticsearch/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/dao/ElasticsearchAuditConfDAO.java +++ b/ext/elasticsearch/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/dao/ElasticsearchAuditConfDAO.java @@ -25,6 +25,7 @@ import co.elastic.clients.elasticsearch._types.SortOptions; import co.elastic.clients.elasticsearch._types.SortOrder; import co.elastic.clients.elasticsearch._types.query_dsl.Query; import co.elastic.clients.elasticsearch._types.query_dsl.QueryBuilders; +import co.elastic.clients.elasticsearch._types.query_dsl.TextQueryType; import co.elastic.clients.elasticsearch.core.CountRequest; import co.elastic.clients.elasticsearch.core.SearchRequest; import co.elastic.clients.elasticsearch.core.search.Hit; @@ -72,6 +73,7 @@ public class ElasticsearchAuditConfDAO extends JPAAuditConfDAO { queries.add(new Query.Builder(). multiMatch(QueryBuilders.multiMatch(). fields("message.before", "message.inputs", "message.output", "message.throwable"). + type(TextQueryType.Phrase). query(entityKey).build()).build()); }