Package io.goobi.viewer.model.search
Class SearchResultGroup
java.lang.Object
io.goobi.viewer.model.search.SearchResultGroup
- All Implemented Interfaces:
Serializable
Used for creating separate groups of search results for a single query. Each group can provide its own filter query for custom results.
- See Also:
-
Constructor Summary
ConstructorDescriptionSearchResultGroup
(SearchResultGroup blueprint) Create a copy of the given SearchResultGroup, without any search resultsSearchResultGroup
(String name, String query, int previewHitCount, boolean useAsAdvancedSearchTemplate) -
Method Summary
Modifier and TypeMethodDescriptionstatic SearchResultGroup
static SearchResultGroup
createDefaultGroup
(String query) static List<SearchResultGroup>
Returns a list of configured result groups or a default group if none are configured.getHits()
long
getName()
int
getQuery()
boolean
boolean
boolean
void
setHasGeoLocationHits
(boolean hasGeoLocationHits) void
setHitLocationList
(List<Location> hitLocationList) void
setHitsCount
(long hitsCount)
-
Constructor Details
-
SearchResultGroup
public SearchResultGroup(String name, String query, int previewHitCount, boolean useAsAdvancedSearchTemplate) - Parameters:
name
-query
-previewHitCount
-useAsAdvancedSearchTemplate
-
-
SearchResultGroup
Create a copy of the given SearchResultGroup, without any search results- Parameters:
blueprint
-
-
-
Method Details
-
createDefaultGroup
- Returns:
- Created
SearchResultGroup
-
createDefaultGroup
- Parameters:
query
-- Returns:
- Created
SearchResultGroup
-
getConfiguredResultGroups
Returns a list of configured result groups or a default group if none are configured.- Returns:
- List
-
isDisplayExpandUrl
public boolean isDisplayExpandUrl()- Returns:
- true if not default group and hitsCount larger than previewHitCount; false otherwise
-
getName
- Returns:
- the name
-
getQuery
- Returns:
- the query
-
getPreviewHitCount
public int getPreviewHitCount()- Returns:
- the previewHitCount
-
isUseAsAdvancedSearchTemplate
public boolean isUseAsAdvancedSearchTemplate()- Returns:
- the useAsAdvancedSearchTemplate
-
getHitsCount
public long getHitsCount()- Returns:
- the hitsCount
-
setHitsCount
public void setHitsCount(long hitsCount) - Parameters:
hitsCount
- the hitsCount to set
-
getHitLocationList
- Returns:
- the hitLocationList
-
setHitLocationList
- Parameters:
hitLocationList
- the hitLocationList to set
-
isHasGeoLocationHits
public boolean isHasGeoLocationHits()- Returns:
- the hasGeoLocationHits
-
setHasGeoLocationHits
public void setHasGeoLocationHits(boolean hasGeoLocationHits) - Parameters:
hasGeoLocationHits
- the hasGeoLocationHits to set
-
getHits
- Returns:
- the hits
-