@Path(value="/elastic")
public interface SearchResource
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
search(String path,
boolean template,
boolean folder,
boolean languageVariants,
boolean translationStatus,
boolean contentTags,
boolean objectTags,
boolean addPrivileges,
boolean privilegeMap,
int nodeId,
List<Integer> folderId,
boolean recursive,
String body)
Perform a search by forwarding the posted search request to elasticsearch under the given path.
|
@POST @Path(value="{path: .*}") javax.ws.rs.core.Response search(@PathParam(value="path") String path, @QueryParam(value="template") @DefaultValue(value="false") boolean template, @QueryParam(value="folder") @DefaultValue(value="false") boolean folder, @QueryParam(value="langvars") @DefaultValue(value="false") boolean languageVariants, @QueryParam(value="translationstatus") @DefaultValue(value="false") boolean translationStatus, @QueryParam(value="contenttags") @DefaultValue(value="false") boolean contentTags, @QueryParam(value="objecttags") @DefaultValue(value="false") boolean objectTags, @QueryParam(value="privileges") @DefaultValue(value="false") boolean addPrivileges, @QueryParam(value="privilegeMap") @DefaultValue(value="false") boolean privilegeMap, @QueryParam(value="nodeId") @DefaultValue(value="0") int nodeId, @QueryParam(value="folderId") List<Integer> folderId, @QueryParam(value="recursive") @DefaultValue(value="false") boolean recursive, String body) throws Exception
path
- path (e.g. /_search)template
- true to add the template to pagesfolder
- true to add the folder to search hitslanguageVariants
- true to add language variants to pagestranslationStatus
- true to add the translation status to pagescontentTags
- true to add content tags to pagesobjectTags
- true to add object tags to search hitsaddPrivileges
- true to add privilege information to foldersprivilegeMap
- true to add privilege maps to foldersnodeId
- optional nodeId to restrict search to a specific nodefolderId
- optional folderId to restrict search to specific folder(s)recursive
- flag for restricting search to given folderIds and their subfoldersbody
- request bodyException
Copyright © 2018 Gentics Software. All rights reserved.