Package de.cxp.ocs.controller
Class FullIndexationController
java.lang.Object
de.cxp.ocs.controller.FullIndexationController
@RestController
@RequestMapping(path="/indexer-api/v1/full")
public class FullIndexationController
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity
<Integer> add
(BulkImportData data) Add products to import into current session.org.springframework.http.ResponseEntity
<Void> cancel
(ImportSession session) org.springframework.http.ResponseEntity
<Boolean> done
(ImportSession session) org.springframework.http.ResponseEntity
<?> startImport
(String indexName, String locale)
-
Constructor Details
-
FullIndexationController
public FullIndexationController()
-
-
Method Details
-
startImport
-
add
@PostMapping("/add") public org.springframework.http.ResponseEntity<Integer> add(@RequestBody BulkImportData data) throws Exception Add products to import into current session.- Parameters:
data
-BulkImportData
that contains the ImportSession that was created at the start of the import plus one or more documents to be indexed- Throws:
Exception
-
done
@PostMapping("/done") public org.springframework.http.ResponseEntity<Boolean> done(@RequestBody ImportSession session) throws Exception - Throws:
Exception
-
cancel
@PostMapping("/cancel") public org.springframework.http.ResponseEntity<Void> cancel(@RequestBody ImportSession session)
-