Created
September 23, 2014 19:28
-
-
Save markharwood/0cecd5019dbd5c4e90fc to your computer and use it in GitHub Desktop.
Issue 7840 workaround
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TransportClient esClient = new TransportClient(ImmutableSettings.settingsBuilder().put("cluster.name", clusterName).build()); | |
// ======= Start hack====== | |
Field f = esClient.getClass().getDeclaredField("injector"); | |
f.setAccessible(true); | |
Injector injector = (Injector) f.get(esClient); | |
injector.createChildInjector(new SignificantTermsHeuristicModule()); | |
// ======= End hack====== |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment