// nothing to do
}
- public SearchClient getClient(){
+ public SearchClient getClient() {
return client;
}
.setType(this.getIndexType())
.setIndex(this.getIndexName())
.setId(this.getKeyValue(key))
+ .setFetchSource(true)
.setRouting(this.getKeyValue(key));
GetResponse response = client.execute(request);
.get().getCount();
}
-
public Map<String, Long> countByField(IndexField indexField, FilterBuilder filter) {
Map<String, Long> counts = new HashMap<String, Long>();
return MANAGEMENT_TYPE;
}
- public static final IndexDefinition RULE = new IndexDefinition("rules", "rules");
- public static final IndexDefinition ACTIVE_RULE = new IndexDefinition("rules", "activeRules");
- public static final IndexDefinition ISSUES = new IndexDefinition("issues", "issues");
- public static final IndexDefinition LOG = new IndexDefinition("logs", "sonarLogs");
-
+ public static final IndexDefinition RULE = new IndexDefinition("rules", "rule");
+ public static final IndexDefinition ACTIVE_RULE = new IndexDefinition("rules", "activeRule");
+ public static final IndexDefinition ISSUES = new IndexDefinition("issues", "issue");
+ public static final IndexDefinition LOG = new IndexDefinition("logs", "sonarLog");
@VisibleForTesting
protected static IndexDefinition TEST = new IndexDefinition("test", "test");