Package org.terrier.rest
Class SearchResource
- java.lang.Object
-
- org.terrier.rest.SearchResource
-
@Path("/search") public class SearchResource extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description SearchResource()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
reinit()
javax.ws.rs.core.Response
search(java.lang.String query, java.lang.String controls, java.lang.String qid, java.lang.String wmodel, java.lang.String matching, java.lang.String format)
-
-
-
Method Detail
-
reinit
public static void reinit()
-
search
@GET @Produces("text/plain") @Path("{format}") public javax.ws.rs.core.Response search(@QueryParam("query") java.lang.String query, @QueryParam("controls") @DefaultValue("") java.lang.String controls, @QueryParam("qid") @DefaultValue("") java.lang.String qid, @QueryParam("wmodel") @DefaultValue("") java.lang.String wmodel, @QueryParam("matching") @DefaultValue("") java.lang.String matching, @PathParam("format") @DefaultValue("trec") java.lang.String format)
-
-