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
ConstructorsConstructorDescriptionSearchResultGroup(SearchResultGroup blueprint) Creates a copy of the given SearchResultGroup, without any search results.SearchResultGroup(String name, String query, int previewHitCount) -
Method Summary
Modifier and TypeMethodDescriptionstatic SearchResultGroupstatic SearchResultGroupcreateDefaultGroup(String query) static List<SearchResultGroup> Returns a list of configured result groups or a default group if none are configured.getHits()longgetName()intgetQuery()booleanbooleanvoidsetHasGeoLocationHits(boolean hasGeoLocationHits) voidsetHitLocationList(List<Location> hitLocationList) voidsetHitsCount(long hitsCount)
-
Constructor Details
-
SearchResultGroup
- Parameters:
name- name/identifier of this result groupquery- Solr query to filter results for this grouppreviewHitCount- number of preview hits to show; -1 for unlimited
-
SearchResultGroup
Creates a copy of the given SearchResultGroup, without any search results.- Parameters:
blueprint- the SearchResultGroup to copy structure from
-
-
Method Details
-
createDefaultGroup
- Returns:
- Created
SearchResultGroup
-
createDefaultGroup
- Parameters:
query- Solr query to assign to the default group- 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
-
getQuery
-
getPreviewHitCount
public int getPreviewHitCount() -
getHitsCount
public long getHitsCount() -
setHitsCount
public void setHitsCount(long hitsCount) -
getHitLocationList
-
setHitLocationList
-
isHasGeoLocationHits
public boolean isHasGeoLocationHits() -
setHasGeoLocationHits
public void setHasGeoLocationHits(boolean hasGeoLocationHits) -
getHits
-