Interface SearchResource
@Path("/elastic")
public interface SearchResource
Resource for endpoints that are forwarded to elasticsearch for performing searches
-
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
search
(String path, com.gentics.contentnode.rest.resource.parameter.SearchParameterBean search, String body) Perform a search by forwarding the posted search request to elasticsearch under the given path.javax.ws.rs.core.Response
searchType
(String type, com.gentics.contentnode.rest.resource.parameter.SearchParameterBean search, String body) Perform a search in indices for a specific type
-
Method Details
-
searchType
@POST @Path("/{type}/_search") javax.ws.rs.core.Response searchType(@PathParam("type") String type, @BeanParam com.gentics.contentnode.rest.resource.parameter.SearchParameterBean search, String body) throws Exception Perform a search in indices for a specific type- Parameters:
type
- object type (one of "page", "image", "file" or "folder")search
- search parameter beanbody
- request body- Returns:
- response
- Throws:
Exception
-
search
@POST @Path("{path: .*}") javax.ws.rs.core.Response search(@PathParam("path") String path, @BeanParam com.gentics.contentnode.rest.resource.parameter.SearchParameterBean search, String body) throws Exception Perform a search by forwarding the posted search request to elasticsearch under the given path. The path will be prefixed with the index name.- Parameters:
path
- path (e.g. /_search)search
- search parameter beanbody
- request body- Returns:
- response
- Throws:
Exception
-