public static IndexResponse fromXContent(XContentParser parser) throws IOException { return PARSER.apply(parser, null); }
/** * Creates a new {@link ScriptSortBuilder} from the query held by the {@link QueryParseContext} in * {@link org.elasticsearch.common.xcontent.XContent} format. * * @param context the input parse context. The state on the parser contained in this context will * be changed as a side effect of this method call * @param elementName in some sort syntax variations the field name precedes the xContent object * that specifies further parameters, e.g. in '{ "foo": { "order" : "asc"} }'. When parsing * the inner object, the field name can be passed in via this argument */ public static ScriptSortBuilder fromXContent(QueryParseContext context, String elementName) throws IOException { return PARSER.apply(context.parser(), context); }