@Service
public class SearchService
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ES_TYPENAME |
Constructor and Description |
---|
SearchService() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
addToIndex(java.lang.String index,
SearchContent content) |
java.lang.String |
deleteFromIndex(java.lang.String index,
java.lang.String id) |
java.util.Collection<java.lang.String> |
getIndexes() |
org.springframework.data.domain.Page<SearchContent> |
search(java.lang.String index,
org.elasticsearch.index.query.QueryBuilder queryBuilder,
org.springframework.data.domain.Pageable pageable) |
public static final java.lang.String ES_TYPENAME
public java.lang.String addToIndex(java.lang.String index, SearchContent content)
public java.lang.String deleteFromIndex(java.lang.String index, java.lang.String id)
public org.springframework.data.domain.Page<SearchContent> search(java.lang.String index, org.elasticsearch.index.query.QueryBuilder queryBuilder, org.springframework.data.domain.Pageable pageable)
public java.util.Collection<java.lang.String> getIndexes()