@Test public void isSearchPlatformFile_returnsFalseWhenFileIsNotESConfig() throws Exception { File dummyFile = tempFolder.newFile(); assertFalse(platform.isSearchPlatformConfiguration(INDEX_NAME, dummyFile)); }
@Override public boolean isSearchPlatformConfiguration(String indexName, File searchEngineStartupSettings) { return searchEngineStartupSettings.isFile() && searchEngineStartupSettings.getName().equals(SETTINGS_FILE); }
ExternalElasticsearch extends Elasticsearch { @Override public boolean isSearchPlatformConfiguration(String indexName, File searchEngineStartupSettings) { return searchEngineStartupSettings.isFile() && searchEngineStartupSettings.getName().equals(SETTINGS_FILE); } }
ExternalElasticsearch extends Elasticsearch { @Override public boolean isSearchPlatformConfiguration(String indexName, File searchEngineStartupSettings) { return searchEngineStartupSettings.isFile() && searchEngineStartupSettings.getName().equals(SETTINGS_FILE); }  }
ExternalElasticsearch extends Elasticsearch { @Override public boolean isSearchPlatformConfiguration(String indexName, File searchEngineStartupSettings) { return searchEngineStartupSettings.isFile() && searchEngineStartupSettings.getName().equals(SETTINGS_FILE); }  @Override void beforeStart(Map<String, Object> configuration); @Override void start(); @Override void load(File dataToBeIndexed, File settingsFile, String collection, String version); @Override QueryOrSearchResponse executeQuery(final String collection, String version, final String query, final String[] fields, final int maxRows); @Override String getName(); @Override boolean isSearchPlatformConfiguration(String indexName, File searchEngineStartupSettings); @Override boolean isCorporaRequired(); @Override void close(); }
ExternalElasticsearch extends Elasticsearch { @Override public boolean isSearchPlatformConfiguration(String indexName, File searchEngineStartupSettings) { return searchEngineStartupSettings.isFile() && searchEngineStartupSettings.getName().equals(SETTINGS_FILE); }  @Override void beforeStart(Map<String, Object> configuration); @Override void start(); @Override void load(File dataToBeIndexed, File settingsFile, String collection, String version); @Override QueryOrSearchResponse executeQuery(final String collection, String version, final String query, final String[] fields, final int maxRows); @Override String getName(); @Override boolean isSearchPlatformConfiguration(String indexName, File searchEngineStartupSettings); @Override boolean isCorporaRequired(); @Override void close();  }