Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-110303

Cannnot get expected value when run DLFileEntryFileNameSearchTest

    Details

      Description

      For modules-integration-hypersonic20-jdk8 batch:

       [exec] com.liferay.document.library.search.test.DLFileEntryFileNameSearchTest > testExtensionAloneSubstringMatchesExtensionAndPathFields FAILED
           [exec]     org.junit.ComparisonFailure: {"from":0,"size":10000,"query":{"bool":{"must":[{"bool":{"must":[{"bool":{"should":[{"bool":{"must":[{"bool":{"should":[{"match":{"comments":{"query":"jp"}}},{"match_phrase_prefix":{"comments":{"query":"jp"}}}]}}],"should":[{"match_phrase":{"comments":{"query":"jp","boost":2.0}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"content":{"query":"jp"}}},{"match_phrase_prefix":{"content":{"query":"jp"}}}]}}],"should":[{"match_phrase":{"content":{"query":"jp","boost":2.0}}}]}},{"bool":{"must":[{"match":{"description":{"query":"jp"}}}],"should":[{"match_phrase":{"description":{"query":"jp","slop":50}}},{"match_phrase":{"description":{"query":"jp","boost":2.0}}}]}},{"bool":{"should":[{"wildcard":{"properties":{"wildcard":"*jp*"}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"title":{"query":"jp"}}},{"match_phrase_prefix":{"title":{"query":"jp"}}}]}}],"should":[{"match_phrase":{"title":{"query":"jp","boost":2.0}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"url":{"query":"jp"}}},{"match_phrase_prefix":{"url":{"query":"jp"}}}]}}],"should":[{"match_phrase":{"url":{"query":"jp","boost":2.0}}}]}},{"bool":{"should":[{"wildcard":{"userName":{"wildcard":"*jp*"}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"assetCategoryTitles_en_US":{"query":"jp"}}},{"match_phrase_prefix":{"assetCategoryTitles_en_US":{"query":"jp"}}}]}}],"should":[{"match_phrase":{"assetCategoryTitles_en_US":{"query":"jp","boost":2.0}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"assetTagNames_en_US":{"query":"jp"}}},{"match_phrase_prefix":{"assetTagNames_en_US":{"query":"jp"}}}]}}],"should":[{"match_phrase":{"assetTagNames_en_US":{"query":"jp","boost":2.0}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"ddmContent":{"query":"jp"}}},{"match_phrase_prefix":{"ddmContent":{"query":"jp"}}}]}}],"should":[{"match_phrase":{"ddmContent":{"query":"jp","boost":2.0}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"extension":{"query":"jp"}}},{"match_phrase_prefix":{"extension":{"query":"jp"}}}]}}],"should":[{"match_phrase":{"extension":{"query":"jp","boost":2.0}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"fileEntryTypeId":{"query":"jp"}}},{"match_phrase_prefix":{"fileEntryTypeId":{"query":"jp"}}}]}}],"should":[{"match_phrase":{"fileEntryTypeId":{"query":"jp","boost":2.0}}}]}},{"bool":{"should":[{"wildcard":{"path":{"wildcard":"*jp*"}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"content_en_US":{"query":"jp"}}},{"match_phrase_prefix":{"content_en_US":{"query":"jp"}}}]}}],"should":[{"match_phrase":{"content_en_US":{"query":"jp","boost":2.0}}}]}}]}}]}}],"filter":[{"bool":{"must":[{"bool":{"must":[{"terms":{"groupId":["59983"]}},{"terms":{"scopeGroupId":["59983"]}}]}},{"bool":{"should":[{"bool":{"must":[{"term":{"entryClassName":{"value":"com.liferay.document.library.kernel.model.DLFileEntry"}}},{"term":{"hidden":{"value":"false"}}},{"term":{"hidden":{"value":"false"}}},{"terms":{"status":["0"]}},{"terms":{"status":["0"]}}]}}]}}]}}]}},"explain":false,"stored_fields":["uid","companyId","entryClassPK","entryClassName","scopeGroupId","groupId","assetTagNames","modified","title","content"],"track_scores":true}->{uid=[com.liferay.document.library.kernel.model.DLFileEntry_PORTLET_59987], entryClassPK=[59987], companyId=[20102], entryClassName=[com.liferay.document.library.kernel.model.DLFileEntry], scopeGroupId=[59983], groupId=[59983], modified=[20200312190901], title=[One.jpg]},{uid=[com.liferay.document.library.kernel.model.DLFileEntry_PORTLET_59997], entryClassPK=[59997], companyId=[20102], entryClassName=[com.liferay.document.library.kernel.model.DLFileEntry], scopeGroupId=[59983], groupId=[59983], modified=[20200312190901], title=[Two.JPG]}->[One.jpg, Two.JPG] expected:<[One.jpg[]]> but was:<[One.jpg[, Two.JPG]]>
           [exec]     	at org.junit.Assert.assertEquals(Assert.java:115)
           [exec]     	at com.liferay.portal.search.test.util.DocumentsAssert.assertValuesIgnoreRelevance(DocumentsAssert.java:87)
           [exec]     	at com.liferay.document.library.search.test.DLFileEntryFileNameSearchTest.assertSearch(DLFileEntryFileNameSearchTest.java:245)
           [exec]     	at com.liferay.document.library.search.test.DLFileEntryFileNameSearchTest.testExtensionAloneSubstringMatchesExtensionAndPathFields(DLFileEntryFileNameSearchTest.java:108)
           [exec]     	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           [exec]     	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
           [exec]     	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           [exec]     	at java.lang.reflect.Method.invoke(Method.java:498)
           [exec]     	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable$2.evaluate(TestExecutorRunnable.java:234)
           [exec]     	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
           [exec]     	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
           [exec]     	at com.liferay.portal.kernel.test.rule.TimeoutTestRule$1.evaluate(TimeoutTestRule.java:89)
           [exec]     	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
           [exec]     	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable$1.evaluate(TestExecutorRunnable.java:143)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec]     	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
           [exec]     	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable._execute(TestExecutorRunnable.java:181)
           [exec]     	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable.run(TestExecutorRunnable.java:95)
           [exec]     	at java.lang.Thread.run(Thread.java:745)
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              brooke.dalton Brooke Dalton
              Reporter:
              felix.zhang Felix Zhang
              Participants of an Issue:
              Recent user:
              Joshua Chong
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                14 weeks ago

                  Packages

                  Version Package
                  7.2.10 DXP FP5
                  7.2.10.2 DXP SP2
                  7.2.X