Class SolrAdminController
java.lang.Object
org.tailormap.api.controller.admin.SolrAdminController
Admin controller for Solr.
-
Constructor Summary
ConstructorDescriptionSolrAdminController
(FeatureTypeRepository featureTypeRepository, SearchIndexRepository searchIndexRepository, SolrService solrService, org.quartz.Scheduler scheduler, TaskManagerService taskManagerService) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<?>
clearIndex
(Long searchIndexId) Clear an index; does not remove theSearchIndex
metadata.org.springframework.http.ResponseEntity<?>
handleException
(org.springframework.web.server.ResponseStatusException ex) org.springframework.http.ResponseEntity<?>
(re-) Index a layer.org.springframework.http.ResponseEntity<?>
pingSolr()
Ping solr.
-
Constructor Details
-
SolrAdminController
public SolrAdminController(@Autowired FeatureTypeRepository featureTypeRepository, @Autowired SearchIndexRepository searchIndexRepository, @Autowired SolrService solrService, @Autowired org.quartz.Scheduler scheduler, @Autowired TaskManagerService taskManagerService)
-
-
Method Details
-
handleException
@ExceptionHandler(org.springframework.web.server.ResponseStatusException.class) public org.springframework.http.ResponseEntity<?> handleException(org.springframework.web.server.ResponseStatusException ex) -
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)
-