diff --git a/elasticsearch/src/main/java/org/elasticsearch/xpack/graph/rest/action/RestGraphAction.java b/elasticsearch/src/main/java/org/elasticsearch/xpack/graph/rest/action/RestGraphAction.java index cdec76cc546..b9e5e0e466a 100644 --- a/elasticsearch/src/main/java/org/elasticsearch/xpack/graph/rest/action/RestGraphAction.java +++ b/elasticsearch/src/main/java/org/elasticsearch/xpack/graph/rest/action/RestGraphAction.java @@ -115,7 +115,7 @@ public class RestGraphAction extends XPackRestHandler { if (token == XContentParser.Token.START_ARRAY) { if (VERTICES_FIELD.match(fieldName)) { - parseVertices(parser, context, currentHop, graphRequest); + parseVertices(parser, currentHop); } } else if (token == XContentParser.Token.START_OBJECT) { if (QUERY_FIELD.match(fieldName)) { @@ -135,12 +135,10 @@ public class RestGraphAction extends XPackRestHandler { } else { throw new ElasticsearchParseException("Illegal property in graph definition " + fieldName, token.name()); } - } - } - private void parseVertices(XContentParser parser, QueryParseContext context, Hop currentHop, GraphExploreRequest graphRequest) + private void parseVertices(XContentParser parser, Hop currentHop) throws IOException { XContentParser.Token token; @@ -324,7 +322,6 @@ public class RestGraphAction extends XPackRestHandler { } else { throw new ElasticsearchParseException("Unknown object property: [" + fieldName + "]"); } - } } }