@RestController
@RequestMapping(value="/api/v1/search")
public class SearchResource
extends java.lang.Object
Constructor and Description |
---|
SearchResource() |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<java.lang.String> |
getIndexes() |
void |
rebuildIndex(java.lang.String index) |
org.springframework.data.domain.Page<SearchContent> |
search(java.lang.String index,
java.lang.String q,
org.springframework.data.domain.Pageable pageable) |
@GetMapping(value="{index}") public org.springframework.data.domain.Page<SearchContent> search(@PathVariable(value="index") java.lang.String index, @RequestParam(value="q") java.lang.String q, @PageableDefault(sort="modified",direction=DESC) org.springframework.data.domain.Pageable pageable)
@DeleteMapping(value="{index}") public void rebuildIndex(@PathVariable(value="index") java.lang.String index)
@GetMapping public java.util.Collection<java.lang.String> getIndexes()