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

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


  SolrServer server;
 
//<start id="tag.rec.gettags"/>
  public TagRecommenderClient(String solrUrl)
          throws MalformedURLException {
    server = new HttpSolrServer(solrUrl); //<co id="trc.server"/>
  }
View Full Code Here


  private final ObjectMapper mapper;

  private static final Logger logger = LoggerFactory.getLogger(NCPRIndexer.class);

  public NCPRIndexer() {
    this.server = new HttpSolrServer(INDEX_URL);
    this.mapper = new ObjectMapper();
  }
View Full Code Here

  private final SolrServer server;

  private static final Logger logger = LoggerFactory.getLogger(NCPRQuery.class);

  public NCPRQuery() {
    this.server = new HttpSolrServer(INDEX_URL);
  }
View Full Code Here

      else
        localClient.getCredentialsProvider().setCredentials(AuthScope.ANY, credentials);
    }

    String httpSolrServerUrl = protocol + "://" + server + ":" + port + location;
    HttpSolrServer httpSolrServer = new ModifiedHttpSolrServer(httpSolrServerUrl, localClient, new XMLResponseParser());
    // Set the solrj instance we want to use
    solrServer = httpSolrServer;
  }
View Full Code Here

        // Start a Solr instance.
        solrRunner = new JettySolrRunner("/solr", getPort());
        solrRunner.start();

        solrServer = new HttpSolrServer("http://localhost:" + getPort() + "/solr");
    }
View Full Code Here

      else
        localClient.getCredentialsProvider().setCredentials(AuthScope.ANY, credentials);
    }

    String httpSolrServerUrl = protocol + "://" + server + ":" + port + location;
    HttpSolrServer httpSolrServer = new ModifiedHttpSolrServer(httpSolrServerUrl, localClient, new XMLResponseParser());
    // Set the solrj instance we want to use
    solrServer = httpSolrServer;
  }
View Full Code Here

        // Start a Solr instance.
        solrRunner = new JettySolrRunner("src/test/resources/solr", "/solr", getPort());
        solrRunner.start();

        solrServer = new HttpSolrServer("http://localhost:" + getPort() + "/solr");
    }
View Full Code Here

        try
        {
            Map<String, Object> data = new HashMap<String, Object>();
            data.put(_ID_LABEL, id);
            data.put(_JSP_KEY, jspKey);
            HttpSolrServer solrServer = new HttpSolrServer(getSolrConfig().getStatisticsCore());

            Map<String, IStatsComponent> components = statsComponentsService.getComponents();
            TwoKeyMap label = new TwoKeyMap();
            TreeKeyMap dataBeans = new TreeKeyMap();
            IStatsComponent statcomponent = null;
View Full Code Here

        try
        {
            Map<String, Object> data = new HashMap<String, Object>();
            data.put(_ID_LABEL, id);
            data.put(_JSP_KEY, jspKey);
            HttpSolrServer solrServer = new HttpSolrServer(getSolrConfig()
                    .getStatisticsCore());

            Map<String, IStatsDualComponent> components = statsComponentsService
                    .getComponents();
            TwoKeyMap label = new TwoKeyMap();
View Full Code Here

        String serverProperty = ConfigurationManager.getProperty(NetworkPlugin.CFG_MODULE,"network.server");
        log.info("network.server:"
                + serverProperty);

        HttpSolrServer server = null;

        if (serverProperty != null) {
            try {
                server = new HttpSolrServer(
                        serverProperty);


            } catch (Exception e) {
                log.error(e.getMessage(), e);
View Full Code Here

TOP

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

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.