@Path(value="2/full-text-search") public class FullTextSearch extends Object
| Constructor and Description |
|---|
FullTextSearch() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
searchByQuery(javax.servlet.http.HttpServletRequest httpServletRequest,
String query,
int from,
int quantity)
Retrieve posts/comments that match the given query
|
@GET
@Path(value="search-by-query")
@Produces(value="application/json")
public javax.ws.rs.core.Response searchByQuery(@Context
javax.servlet.http.HttpServletRequest httpServletRequest,
@QueryParam(value="query") @NotNull(message="query cannot be null") @Size(min=1,message="query cannot be empty")
String query,
@DefaultValue(value="0") @QueryParam(value="from") @Min(value=0L,message="from cannot be negative")
int from,
@DefaultValue(value="10") @QueryParam(value="quantity") @Min(value=0L,message="quantity cannot be negative")
int quantity)
throws javax.validation.ValidationException
httpServletRequest - query - A string to search forfrom - the index of the base result to be returned, range[0, infinity], defaults from = 0quantity - defines how many results are most are to be returned, range[1, infinity], defaults from = 0,javax.validation.ValidationExceptionCopyright © 2022. All rights reserved.