Search in sources :

Example 21 with QueryRequest

use of org.nextprot.api.solr.QueryRequest in project nextprot-api by calipho-sib.

the class ExportController method streamEntries.

@RequestMapping(value = "/export/entries", method = { RequestMethod.GET })
public void streamEntries(HttpServletRequest request, HttpServletResponse response, @RequestParam(value = "query", required = false) String query, @RequestParam(value = "chromosome", required = false) String chromosome, @RequestParam(value = "listId", required = false) String listId, @RequestParam(value = "queryId", required = false) String queryId, @RequestParam(value = "sparql", required = false) String sparql, @RequestParam(value = "filter", required = false) String filter, @RequestParam(value = "sort", required = false) String sort, @RequestParam(value = "order", required = false) String order, @RequestParam(value = "quality", required = false) String quality) {
    QueryRequest qr = buildQueryRequest(request, query, listId, queryId, sparql, chromosome, filter, quality, sort, order);
    streamEntryService.streamQueriedEntries(qr, NextprotMediaType.valueOf(request), "entry", response);
}
Also used : QueryRequest(org.nextprot.api.solr.QueryRequest)

Aggregations

QueryRequest (org.nextprot.api.solr.QueryRequest)21 Test (org.junit.Test)16 Query (org.nextprot.api.solr.Query)16 SearchResult (org.nextprot.api.solr.SearchResult)16 WebUnitBaseTest (org.nextprot.api.web.dbunit.base.mvc.WebUnitBaseTest)14 NextProtException (org.nextprot.api.commons.exception.NextProtException)2 WebIntegrationBaseTest (org.nextprot.api.web.dbunit.base.mvc.WebIntegrationBaseTest)2 HashSet (java.util.HashSet)1 ApiMethod (org.jsondoc.core.annotation.ApiMethod)1 Ignore (org.junit.Ignore)1 SearchQueryException (org.nextprot.api.commons.exception.SearchQueryException)1 RequestMapping (org.springframework.web.bind.annotation.RequestMapping)1