Package org.apache.solr.client.solrj.impl

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


    HttpClient localClient = clientBuilder.build();


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

      @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

          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

  }

  @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

    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

            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

TOP

Related Classes of org.apache.solr.client.solrj.impl.XMLResponseParser

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.