Class SolrAdminController
java.lang.Object
org.tailormap.api.controller.admin.SolrAdminController
Admin controller for Solr.
-
Constructor Summary
ConstructorDescriptionSolrAdminController
(FeatureSourceFactoryHelper featureSourceFactoryHelper, FeatureTypeRepository featureTypeRepository, SearchIndexRepository searchIndexRepository, SolrService solrService) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<?>
clearIndex
(Long searchIndexId) Clear an index; does not remove theSearchIndex
metadata.org.springframework.http.ResponseEntity<?>
(re-) Index a layer.org.springframework.http.ResponseEntity<?>
pingSolr()
Ping solr.
-
Constructor Details
-
SolrAdminController
public SolrAdminController(FeatureSourceFactoryHelper featureSourceFactoryHelper, FeatureTypeRepository featureTypeRepository, SearchIndexRepository searchIndexRepository, SolrService solrService)
-
-
Method Details
-
pingSolr
@GetMapping(path="${tailormap-api.admin.base-path}/index/ping", produces="application/json") public org.springframework.http.ResponseEntity<?> pingSolr()Ping solr.- Returns:
- the response entity (ok or an error response)
-
index
@Transactional @PutMapping(path="${tailormap-api.admin.base-path}/index/{searchIndexId}", produces="application/json") public org.springframework.http.ResponseEntity<?> index(@PathVariable Long searchIndexId) (re-) Index a layer.- Parameters:
searchIndexId
- the searchIndex id- Returns:
- the response entity (accepted or an error response)
-
clearIndex
@DeleteMapping(path="${tailormap-api.admin.base-path}/index/{searchIndexId}", produces="application/json") @Transactional public org.springframework.http.ResponseEntity<?> clearIndex(@PathVariable Long searchIndexId) Clear an index; does not remove theSearchIndex
metadata.- Parameters:
searchIndexId
- the searchindex id- Returns:
- the response entity (
204 NOCONTENT
or an error response)
-