/** * Gets a connection to the targeted core, used for sending the schema requests. * * @return a valid solr client */ protected SolrClient getClient() { return this.coreConnection.getSolrConnection(getTargetVocabularyId()); }
@Override public void initialize() { try { addFieldType(); addFields(); } catch (SolrServerException | IOException ex) { this.logger.error("Failed to add the required Solr fields for {}-{}: {}", getTargetLocale(), getTargetVocabularyId(), ex.getMessage(), ex); } }
/** * Gets a connection to the targeted core, used for sending the schema requests. * * @return a valid solr client */ protected SolrClient getClient() { return this.coreConnection.getSolrConnection(this.vocabularyManager.getVocabulary(getTargetVocabularyId())); }
@Override public void initialize() { try { addFieldType(); addFields(); } catch (SolrServerException | IOException ex) { this.logger.error("Failed to add the required Solr fields for {}-{}: {}", getTargetLocale(), getTargetVocabularyId(), ex.getMessage(), ex); } }