package uk.ac.ebi.quickgo.annotation.service.search;

import uk.ac.ebi.quickgo.rest.search.query.QueryRequest;
import uk.ac.ebi.quickgo.rest.search.query.SolrQueryConverter;

import org.apache.solr.client.solrj.SolrQuery;

/**
 *
 * Specialized SolrQueryConverter. Doesn't assign a parameter to query (q) on
 * the SolrQuery instance.
 *
 * @author Tony Wardell
 * Date: 28/04/2016
 * Time: 13:20
 * Created with IntelliJ IDEA.
 */
public class AnnotationSolrQueryConverter extends SolrQueryConverter{

    public AnnotationSolrQueryConverter(String requestHandler) {
        super(requestHandler);
    }


    /**
     * For annotation filtering (and we use fq only for annotations) don't set a query String
     * @param request
     * @param solrQuery
     */
    protected void assignQuery(QueryRequest request, SolrQuery solrQuery) {
        return;
    }


}

@@ -425,23 +425,16 @@
 EA.%0A */%0A
-public 
 class An
@@ -828,28 +828,8 @@
 y) %7B
-%0A        return;%0A   
  %7D%0A%0A

Simplify method.