Package io.goobi.viewer.model.maps
Class SolrFeatureSet
java.lang.Object
io.goobi.viewer.model.maps.FeatureSet
io.goobi.viewer.model.maps.SolrFeatureSet
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
SearchResultFeatureSet
A
FeatureSet implementation that generates geo map features by executing a configurable Solr query and converting the matching documents
into GeoJSON features.- See Also:
-
Field Summary
FieldsFields inherited from class io.goobi.viewer.model.maps.FeatureSet
DEFAULT_MARKER_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Collection<GeoMapFeature> combineFeatures(Collection<GeoMapFeature> singleFeatures) copy()protected Collection<GeoMapFeature> protected Collection<GeoMapFeature> createFeatures(String query, List<String> facetFilterQueries) protected StringcreateFeaturesAsString(boolean escapeJson) getCoordinateSearchQueryTemplate.Additional, URL-encoded Solr filter query to send along with heatmap requests.getSolrQuery(boolean aggregateResults) getSolrQueryForSearch(boolean aggregateResults) getType()booleanbooleanbooleanbooleanbooleanvoidsetFeaturesAsString(String featuresAsString) voidsetItemFilterName(String itemFilterName) voidsetItemMetadataList(String itemMetadataList) voidsetMarkerGeneration(MarkerGenerationType markerGeneration) voidsetMarkerMetadataList(String markerMetadataList) voidsetMarkerTitleField(String markerTitleField) voidsetSearchScope(SolrSearchScope searchScope) voidsetSolrQuery(String solrQuery) voidsetUseHeatmap(boolean useHeatmap) voidMethods inherited from class io.goobi.viewer.model.maps.FeatureSet
getColor, getFillOpacity, getId, getMarker, getMarkerAsJSON, getName, setId, setMarker, setName
-
Field Details
-
MAX_RECORD_HITS
protected static final int MAX_RECORD_HITS- See Also:
-
featuresAsString
-
-
Constructor Details
-
SolrFeatureSet
public SolrFeatureSet() -
SolrFeatureSet
-
-
Method Details
-
copy
- Specified by:
copyin classFeatureSet
-
getFeaturesAsString
- Specified by:
getFeaturesAsStringin classFeatureSet- Throws:
PresentationException
-
getFeaturesAsJsonString
- Specified by:
getFeaturesAsJsonStringin classFeatureSet- Throws:
PresentationException
-
setFeaturesAsString
-
createFeaturesAsString
protected String createFeaturesAsString(boolean escapeJson) throws PresentationException, IndexUnreachableException -
createFeatures
protected Collection<GeoMapFeature> createFeatures() throws PresentationException, IndexUnreachableException -
createFeatures
protected Collection<GeoMapFeature> createFeatures(String query, List<String> facetFilterQueries) throws PresentationException, IndexUnreachableException -
combineFeatures
-
getSolrQuery
-
getSolrQuery
-
getSolrQueryForSearchEncoded
-
getSolrQueryForSearch
-
isAggregateResults
public boolean isAggregateResults() -
getSolrQueryForSearch
-
getSolrQueryEncoded
-
getFacetQueryEncoded
Additional, URL-encoded Solr filter query to send along with heatmap requests. PlainSolrFeatureSets have no such additional filter; subclasses deriving their features from a live search (e.g.SearchResultFeatureSet) may override this to restrict heatmap results by the currently active search filters.- Returns:
- URL-encoded filter query; empty string if none applies
-
getCoordinateSearchQueryTemplate
getCoordinateSearchQueryTemplate.- Returns:
- String
- Throws:
URISyntaxException
-
setSolrQuery
-
hasSolrQuery
public boolean hasSolrQuery() -
getMarkerTitleField
-
setMarkerTitleField
-
updateFeatures
public void updateFeatures()- Specified by:
updateFeaturesin classFeatureSet
-
hasFeatures
public boolean hasFeatures()- Specified by:
hasFeaturesin classFeatureSet
-
getMarkerMetadataList
-
setMarkerMetadataList
-
getItemMetadataList
-
setItemMetadataList
-
isQueryResultSet
public boolean isQueryResultSet()- Specified by:
isQueryResultSetin classFeatureSet
-
getSearchScope
-
setSearchScope
-
getType
- Specified by:
getTypein classFeatureSet
-
getItemFilterName
-
setItemFilterName
-
getItemFilter
-
getMarkerGeneration
-
setMarkerGeneration
-
isUseHeatmap
public boolean isUseHeatmap()- Specified by:
isUseHeatmapin classFeatureSet
-
setUseHeatmap
public void setUseHeatmap(boolean useHeatmap) - Specified by:
setUseHeatmapin classFeatureSet
-