diff --git a/modules/apps/portal-search/portal-search-test-util/src/main/java/com/liferay/portal/search/test/util/mappings/BaseTitleFieldQueryBuilderTestCase.java b/modules/apps/portal-search/portal-search-test-util/src/main/java/com/liferay/portal/search/test/util/mappings/BaseTitleFieldQueryBuilderTestCase.java index 542e8cb8256210..5ad5463538baee 100644 --- a/modules/apps/portal-search/portal-search-test-util/src/main/java/com/liferay/portal/search/test/util/mappings/BaseTitleFieldQueryBuilderTestCase.java +++ b/modules/apps/portal-search/portal-search-test-util/src/main/java/com/liferay/portal/search/test/util/mappings/BaseTitleFieldQueryBuilderTestCase.java @@ -63,6 +63,19 @@ public void testBasicWordMatches() throws Exception { assertSearchNoHits("tag2"); } + @Test + public void testDot() throws Exception { + addDocument("1.0"); + addDocument("1.1"); + + assertSearch("1.0", Arrays.asList("1.0")); + assertSearch("1.1", Arrays.asList("1.1")); + + assertSearch("1", Arrays.asList("1.0", "1.1")); + + assertSearchNoHits("0"); + } + @Test public void testExactMatchBoost() throws Exception { addDocument("one two three four five six seven eight");