Examples of XmlResponseParser


Examples of org.apache.solr.client.solrj.impl.XMLResponseParser

   
    if (EXTERNAL_SOLR_SERVER_URL != null) {
      //solrServer = new ConcurrentUpdateSolrServer(EXTERNAL_SOLR_SERVER_URL, 2, 2);
      //solrServer = new SafeConcurrentUpdateSolrServer(EXTERNAL_SOLR_SERVER_URL, 2, 2);
      solrServer = new HttpSolrServer(EXTERNAL_SOLR_SERVER_URL);
      ((HttpSolrServer)solrServer).setParser(new XMLResponseParser());
    } else {
      if (TEST_WITH_EMBEDDED_SOLR_SERVER) {
        solrServer = new TestEmbeddedSolrServer(h.getCoreContainer(), "");
      } else {
        throw new RuntimeException("Not yet implemented");
View Full Code Here

Examples of org.apache.solr.client.solrj.impl.XMLResponseParser

   
    if (EXTERNAL_SOLR_SERVER_URL != null) {
      //solrServer = new ConcurrentUpdateSolrServer(EXTERNAL_SOLR_SERVER_URL, 2, 2);
      //solrServer = new SafeConcurrentUpdateSolrServer(EXTERNAL_SOLR_SERVER_URL, 2, 2);
      solrServer = new HttpSolrServer(EXTERNAL_SOLR_SERVER_URL);
      ((HttpSolrServer)solrServer).setParser(new XMLResponseParser());
    } else {
      if (TEST_WITH_EMBEDDED_SOLR_SERVER) {
        solrServer = new TestEmbeddedSolrServer(h.getCoreContainer(), "");
      } else {
        throw new RuntimeException("Not yet implemented");
View Full Code Here

Examples of org.apache.solr.client.solrj.impl.XMLResponseParser

    HttpClient localClient = clientBuilder.build();


    String httpSolrServerUrl = protocol + "://" + server + ":" + port + location;
    solrServer = new ModifiedHttpSolrServer(httpSolrServerUrl, localClient, new XMLResponseParser());
  }
View Full Code Here

Examples of org.apache.solr.client.solrj.impl.XMLResponseParser

    HttpClient localClient = clientBuilder.build();


    String httpSolrServerUrl = protocol + "://" + server + ":" + port + location;
    solrServer = new ModifiedHttpSolrServer(httpSolrServerUrl, localClient, new XMLResponseParser());
  }
View Full Code Here

Examples of org.apache.solr.client.solrj.impl.XMLResponseParser

      @Value("${solr.pool.maxTotalConnections}") Integer maxTotalConnections) throws MalformedURLException {
    HttpSolrServer solrServer = new HttpSolrServer(solrUrl);
   
    solrServer.setMaxTotalConnections(maxTotalConnections);
    solrServer.setDefaultMaxConnectionsPerHost(maxTotalConnections);
    solrServer.setParser(new XMLResponseParser());
   
    return solrServer;
  }
View Full Code Here

Examples of org.apache.solr.client.solrj.impl.XMLResponseParser

          server = null;
          coreContainer = null;
          if (baseurl!=null) {
            server = new HttpSolrServer(url);
              if (!solrUseJavaBin)
                ((HttpSolrServer)server).setParser(new XMLResponseParser());
          }

             if (home!=null) {
               /*
               coreContainer = new CoreContainer(home);
View Full Code Here

Examples of org.apache.solr.client.solrj.impl.XMLResponseParser

  }

  @SuppressWarnings("unchecked")
  @Test
  public void testSimple() throws Exception {
    XMLResponseParser parser = new XMLResponseParser();
    NamedList<Object> nl = parser.processResponse(new StringReader(xml));
    QueryResponse res = new QueryResponse(nl, null);

    SolrDocumentList solDocList = res.getResults();
    List<Item> l = getBeans(solDocList);
    Assert.assertEquals(solDocList.size(), l.size());
View Full Code Here

Examples of org.apache.solr.client.solrj.impl.XMLResponseParser

    Assert.assertEquals("hello", item.categories[0]);
  }

  @Test
  public void testDynamicFieldBinding() {
    XMLResponseParser parser = new XMLResponseParser();
    NamedList<Object> nl = parser.processResponse(new StringReader(xml));
    QueryResponse res = new QueryResponse(nl, null);

    List<Item> l = getBeans(res.getResults());

    Item item = l.get(3);
View Full Code Here

Examples of org.apache.solr.client.solrj.impl.XMLResponseParser

            solrCore.setFollowRedirects(false)// defaults to false
            // allowCompression defaults to false.
            // Server side must support gzip or deflate for this to have any effect.
            solrCore.setAllowCompression(true);
            solrCore.setMaxRetries(1); // defaults to 0.  > 1 not recommended.
            solrCore.setParser(new XMLResponseParser()); // binary parser is used by default


        }
View Full Code Here

Examples of org.jclouds.rest.annotations.XMLResponseParser

      else
         assertEquals(assigned, expected);
   }

   protected void assertSaxResponseParserClassEquals(Invokable<?, ?> method, @Nullable Class<?> parserClass) {
      XMLResponseParser annotation = method.getAnnotation(XMLResponseParser.class);
      Class<?> expected =  (annotation != null) ? annotation.value() :null;
      assertEquals(expected, parserClass);
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.