Class SolrAdminController

java.lang.Object
org.tailormap.api.controller.admin.SolrAdminController

@RestController public class SolrAdminController extends Object
Admin controller for Solr.
  • Constructor Details

  • 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 the SearchIndex metadata.
      Parameters:
      searchIndexId - the searchindex id
      Returns:
      the response entity (204 NOCONTENT or an error response)