@Path(value="/elastic")
public interface SearchResource
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
search(String path,
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,
SearchParameterBean search,
String body)
Perform a search in indices for a specific type
|
@POST @Path(value="/{type}/_search") javax.ws.rs.core.Response searchType(@PathParam(value="type") String type, @BeanParam SearchParameterBean search, String body) throws Exception
type
- object type (one of "page", "image", "file" or "folder")search
- search parameter beanbody
- request bodyException
@POST @Path(value="{path: .*}") javax.ws.rs.core.Response search(@PathParam(value="path") String path, @BeanParam SearchParameterBean search, String body) throws Exception
path
- path (e.g. /_search)search
- search parameter beanbody
- request bodyException
Copyright © 2024 Gentics Software. All rights reserved.