From 9ee1cbab0d83ab5a7cbbc4acb11506b51522803d Mon Sep 17 00:00:00 2001 From: Indy Prentice Date: Wed, 6 Sep 2023 16:07:08 -0300 Subject: [PATCH] checkstyle --- .../search/elasticsearch/query/request/SearchQueryBuilder.java | 2 +- .../elasticsearch/query/request/SearchQueryBuilderTest.java | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/metadata-io/src/main/java/com/linkedin/metadata/search/elasticsearch/query/request/SearchQueryBuilder.java b/metadata-io/src/main/java/com/linkedin/metadata/search/elasticsearch/query/request/SearchQueryBuilder.java index c78108a9d5d80..690065eb44bc9 100644 --- a/metadata-io/src/main/java/com/linkedin/metadata/search/elasticsearch/query/request/SearchQueryBuilder.java +++ b/metadata-io/src/main/java/com/linkedin/metadata/search/elasticsearch/query/request/SearchQueryBuilder.java @@ -118,7 +118,7 @@ private QueryBuilder buildInternalQuery(@Nullable QueryConfiguration customQuery QueryStringQueryBuilder queryBuilder = QueryBuilders.queryStringQuery(withoutQueryPrefix); queryBuilder.defaultOperator(Operator.AND); - getStandardFields(entitySpecs).forEach( entitySpec -> + getStandardFields(entitySpecs).forEach(entitySpec -> queryBuilder.field(entitySpec.fieldName(), entitySpec.boost())); finalQuery.should(queryBuilder); if (exactMatchConfiguration.isEnableStructured()) { diff --git a/metadata-io/src/test/java/com/linkedin/metadata/search/elasticsearch/query/request/SearchQueryBuilderTest.java b/metadata-io/src/test/java/com/linkedin/metadata/search/elasticsearch/query/request/SearchQueryBuilderTest.java index 4bfe74fa5e8e3..4fa253d77702d 100644 --- a/metadata-io/src/test/java/com/linkedin/metadata/search/elasticsearch/query/request/SearchQueryBuilderTest.java +++ b/metadata-io/src/test/java/com/linkedin/metadata/search/elasticsearch/query/request/SearchQueryBuilderTest.java @@ -1,6 +1,5 @@ package com.linkedin.metadata.search.elasticsearch.query.request; -import com.datastax.dse.driver.api.core.graph.predicates.Search; import com.linkedin.data.schema.DataSchema; import com.linkedin.data.schema.PathSpec; import com.linkedin.metadata.config.search.CustomConfiguration;