public abstract class BaseGroupByTestCase extends BaseIndexingTestCase
BaseIndexingTestCase.DocumentCreationHelper
Modifier and Type | Field and Description |
---|---|
protected static String |
GROUP_FIELD |
COMPANY_ID, GROUP_ID
Constructor and Description |
---|
BaseGroupByTestCase() |
Modifier and Type | Method and Description |
---|---|
protected void |
addDocuments(String name,
int count) |
protected void |
assertGroup(String key,
int hitsCount,
int docsCount,
Map<String,com.liferay.portal.kernel.search.Hits> groupedHitsMap) |
protected void |
assertGroup(String key,
int count,
Map<String,com.liferay.portal.kernel.search.Hits> groupedHitsMap) |
protected Map<String,com.liferay.portal.kernel.search.Hits> |
searchGroups(com.liferay.portal.kernel.search.SearchContext searchContext) |
protected void |
testGroupBy() |
protected void |
testStartAndEnd() |
protected void |
testStartAndSize() |
addDocument, createIndexingFixture, createSearchContext, search, setUp, tearDown
protected static final String GROUP_FIELD
protected void assertGroup(String key, int hitsCount, int docsCount, Map<String,com.liferay.portal.kernel.search.Hits> groupedHitsMap)
protected void assertGroup(String key, int count, Map<String,com.liferay.portal.kernel.search.Hits> groupedHitsMap)
protected Map<String,com.liferay.portal.kernel.search.Hits> searchGroups(com.liferay.portal.kernel.search.SearchContext searchContext) throws Exception
Exception