Skip to content

Commit e5a9110

Browse files
committed
cleanups
1 parent dcfe174 commit e5a9110

File tree

4 files changed

+0
-11
lines changed

4 files changed

+0
-11
lines changed

server/src/internalClusterTest/java/org/elasticsearch/search/fetch/subphase/InnerHitsIT.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,6 @@ protected Collection<Class<? extends Plugin>> nodePlugins() {
6767
return Arrays.asList(InternalSettingsPlugin.class, CustomScriptPlugin.class);
6868
}
6969

70-
@Override
71-
protected int numberOfShards() {
72-
return 1;
73-
}
74-
7570
public static class CustomScriptPlugin extends MockScriptPlugin {
7671
@Override
7772
protected Map<String, Function<Map<String, Object>, Object>> pluginScripts() {

server/src/main/java/org/elasticsearch/search/fetch/FetchContext.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,10 +199,8 @@ public SourceLookup getRootSourceLookup(FetchSubPhase.HitContext hitContext) {
199199
// the root source is found on the inner hits context.
200200
if (searchContext instanceof InnerHitSubContext && hitContext.hit().getNestedIdentity() != null) {
201201
InnerHitSubContext innerHitsContext = (InnerHitSubContext) searchContext;
202-
System.out.println("Getting root source lookup from inner hits context");
203202
return innerHitsContext.getRootLookup();
204203
} else {
205-
System.out.println("Getting root source lookup from hit context");
206204
return hitContext.valuesLookup().source();
207205
}
208206
}

server/src/main/java/org/elasticsearch/search/fetch/FetchPhase.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -390,9 +390,6 @@ private HitContext prepareNestedHitContext(SearchContext context,
390390
String nestedPath = nested.getField().string();
391391
current.put(nestedPath, new HashMap<>());
392392
List<?> nestedParsedSource = XContentMapValues.extractNestedValue(nestedPath, rootSourceAsMap);
393-
if (nestedParsedSource == null) {
394-
System.out.println("Oops");
395-
}
396393
if ((nestedParsedSource.get(0) instanceof Map) == false && hasNonNestedParent.test(nestedPath)) {
397394
// When one of the parent objects are not nested then XContentMapValues.extractValue(...) extracts the values
398395
// from two or more layers resulting in a list of list being returned. This is because nestedPath

server/src/main/java/org/elasticsearch/search/fetch/subphase/InnerHitsContext.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ public SourceLookup getRootLookup() {
133133
}
134134

135135
public void setRootLookup(SourceLookup rootLookup) {
136-
System.out.println("Setting root source lookup " + rootLookup.source());
137136
this.rootLookup.setSource(rootLookup.source());
138137
this.rootLookup.setSourceContentType(rootLookup.sourceContentType());
139138
}

0 commit comments

Comments
 (0)