Package org.apache.solr.handler.component

Examples of org.apache.solr.handler.component.ResponseBuilder


  {
    if (!rb1.doFacets) {
      return ;
    }
   
    final ResponseBuilder rb=rb1;
   
    final long t1=System.currentTimeMillis();
   
  ExecutorCompletionService<String> submit=new ExecutorCompletionService<String>(SUBMIT_POOL);
  Callable<String> task = new Callable<String>() {
        public String call() throws Exception {

          long t2=System.currentTimeMillis();
          SolrParams params = rb.req.getParams();
          String[] facetFs = params.getParams(FacetParams.FACET_FIELD);

          try{
              if (null != facetFs) {
                boolean isdetail = params.getBool(FacetParams.FACET_CROSS_DETAIL,false);
                 Object res= FacetComponent.this.getResult(isdetail,rb.req.getSearcher(), params,rb.req,facetFs,rb.getResults().docSet);
                  rb.rsp.add( "mdrill_data", res);
              }else{
                throw new Exception("null != facetFs");
              }
          }catch(Throwable e)
View Full Code Here


      int hits = 0;

      if (verifyCandidateWithQuery) {
        tryNo++;

        ResponseBuilder checkResponse = new ResponseBuilder();
        checkResponse.setQparser(ultimateResponse.getQparser());
        checkResponse.setFilters(ultimateResponse.getFilters());
        checkResponse.setQueryString(collationQueryStr);
        checkResponse.components = Arrays.asList(new SearchComponent[] { queryComponent });

        ModifiableSolrParams params = new ModifiableSolrParams(ultimateResponse.req.getParams());
        params.set(CommonParams.Q, collationQueryStr);
        params.remove(CommonParams.START);
View Full Code Here

TOP

Related Classes of org.apache.solr.handler.component.ResponseBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.