Skip to content

Commit 41b6891

Browse files
committed
clean code
1 parent 298d144 commit 41b6891

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

server/src/internalClusterTest/java/org/elasticsearch/search/fetch/subphase/highlight/HighlighterSearchIT.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3922,9 +3922,6 @@ public void testDoubleConstantKeywordNestedQueriesBothHighlighted() throws Excep
39223922
"test_constant_keyword_field_2": {
39233923
"type": "constant_keyword",
39243924
"value": "constant_value_2"
3925-
},
3926-
"another_constant_field": {
3927-
"type": "keyword"
39283925
}
39293926
}
39303927
}
@@ -3959,9 +3956,6 @@ public void testDoubleConstantKeywordNestedQueriesJustOneHighlighted() throws Ex
39593956
"test_constant_keyword_field_2": {
39603957
"type": "constant_keyword",
39613958
"value": "constant_value_2"
3962-
},
3963-
"another_constant_field": {
3964-
"type": "keyword"
39653959
}
39663960
}
39673961
}

server/src/main/java/org/elasticsearch/action/search/CanMatchNodeRequest.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@
4040
public class CanMatchNodeRequest extends TransportRequest implements IndicesRequest {
4141

4242
private final SearchSourceBuilder source;
43-
44-
private final SearchSourceBuilder originalSource;
4543
private final List<Shard> shards;
4644
private final SearchType searchType;
4745
private final Boolean requestCache;
@@ -132,7 +130,6 @@ public CanMatchNodeRequest(
132130
@Nullable String clusterAlias
133131
) {
134132
this.source = searchRequest.source();
135-
this.originalSource = searchRequest.source();
136133
this.indicesOptions = indicesOptions;
137134
this.shards = new ArrayList<>(shards);
138135
this.searchType = searchRequest.searchType();
@@ -152,7 +149,6 @@ public CanMatchNodeRequest(
152149
public CanMatchNodeRequest(StreamInput in) throws IOException {
153150
super(in);
154151
source = in.readOptionalWriteable(SearchSourceBuilder::new);
155-
originalSource = in.readOptionalWriteable(SearchSourceBuilder::new);
156152
indicesOptions = IndicesOptions.readIndicesOptions(in);
157153
searchType = SearchType.fromId(in.readByte());
158154
if (in.getTransportVersion().before(TransportVersion.V_8_0_0)) {
@@ -179,7 +175,6 @@ public CanMatchNodeRequest(StreamInput in) throws IOException {
179175
public void writeTo(StreamOutput out) throws IOException {
180176
super.writeTo(out);
181177
out.writeOptionalWriteable(source);
182-
out.writeOptionalWriteable(originalSource);
183178
indicesOptions.writeIndicesOptions(out);
184179
out.writeByte(searchType.id());
185180
if (out.getTransportVersion().before(TransportVersion.V_8_0_0)) {

0 commit comments

Comments
 (0)