@HTTPService(name="csrc") public class ClientService extends java.lang.Object
ContentSuggestService| Constructor and Description |
|---|
ClientService() |
| Modifier and Type | Method and Description |
|---|---|
Response |
suggest(AuthenticationParameter authenticatedUser,
DataGroups dataGroups,
StringParameter query,
Limits limits)
This method is for retrieving a list of suggestions based on the indexed data of the user.
|
public ClientService()
@HTTPServiceMethod(name="suggest", acceptedMethods="GET") public Response suggest(@HTTPAuthenticationParameter(required=false) AuthenticationParameter authenticatedUser, @HTTPMethodParameter(name="data_groups",required=false) DataGroups dataGroups, @HTTPMethodParameter(name="query",required=true) StringParameter query, @HTTPMethodParameter(name="limits",required=false,defaultValue="0-9") Limits limits)
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<response method="suggest" service="csrc">
<autoCompleteResults>
<collation/>
<suggestionList>
<suggestion>petervzVRrjYPVA</suggestion>
<suggestion>peterqgPOHoodUU</suggestion>
<suggestion>peterhClEKRgcnM</suggestion>
<suggestion>peterUqieawanPu</suggestion>
<suggestion>petercwvpqHwXyQ</suggestion>
<suggestion>peterFWLXITPbAA</suggestion>
<suggestion>peterwZHjddRtrm</suggestion>
<suggestion>peteruUyOwVxMAb</suggestion>
<suggestion>peterCRQChgQeOv</suggestion>
<suggestion>peternWulmCvqjW</suggestion>
</suggestionList>
</autoCompleteResults>
<status>OK</status>
</response>
authenticatedUser - Note: this method requires authentication, but for the reference implementation, anonymous access is granted.dataGroups - filters based on MediaObject.MediaObjectType. Applicable values are face, keywords, metadata and object.query - The query string for a suggestion. The query string is tokenized with character "32", and the last token is sent to the suggestion back-end.limits - paging limitsAutoCompleteResultCopyright © 2015 Tampere University of Technology, Pori Department.