diff --git a/metadata-io/src/test/java/com/linkedin/metadata/search/fixtures/SampleDataFixtureTestBase.java b/metadata-io/src/test/java/com/linkedin/metadata/search/fixtures/SampleDataFixtureTestBase.java index 504eb5f5fc13db..fd663de40e0050 100644 --- a/metadata-io/src/test/java/com/linkedin/metadata/search/fixtures/SampleDataFixtureTestBase.java +++ b/metadata-io/src/test/java/com/linkedin/metadata/search/fixtures/SampleDataFixtureTestBase.java @@ -1367,8 +1367,8 @@ public void testScrollAcrossEntities() throws IOException { resultUrns.addAll(result.getEntities().stream().map(SearchEntity::getEntity).toList()); scrollId = result.getScrollId(); } while (scrollId != null); - // expect 2 total matching results - assertEquals(totalResults, 2, String.format("query `%s` Results: %s", query, resultUrns)); + // expect 8 total matching results + assertEquals(totalResults, 8, String.format("query `%s` Results: %s", query, resultUrns)); } @Test @@ -1745,7 +1745,7 @@ public void testOr() { String.format("%s - Expected search results to include matched fields", query)); assertEquals( result.getEntities().size(), - 2, + 8, String.format( "Query: `%s` Results: %s", query, @@ -1776,7 +1776,7 @@ public void testNegate() { String.format("%s - Expected search results to include matched fields", query)); assertEquals( result.getEntities().size(), - 2, + 8, String.format( "Query: `%s` Results: %s", query, diff --git a/metadata-io/src/test/resources/search_config_fixture_test.yml b/metadata-io/src/test/resources/search_config_fixture_test.yml index 08e713c6b1cd38..e3c97c267188fb 100644 --- a/metadata-io/src/test/resources/search_config_fixture_test.yml +++ b/metadata-io/src/test/resources/search_config_fixture_test.yml @@ -57,9 +57,9 @@ queryConfigurations: boost_mode: replace # Criteria for exact-match only - # Contains quotes, is a single term with `_`, `.`, or `-` (normally consider for tokenization) then use exact match query + # Contains quotes - queryRegex: >- - ^["'].+["']$|^[a-zA-Z0-9]\S+[_.-]\S+[a-zA-Z0-9]$ + ^["'].+["']$ simpleQuery: false prefixMatchQuery: true exactMatchQuery: true