Undeprecate GetResponse#getFields and GetResponse#getField
These functions should not have been deprecated as they can be used to retrieve stored and doc-value field.
This commit is contained in:
parent
6bddd426cc
commit
03a0a0aebb
|
@ -134,18 +134,10 @@ public class GetResponse extends ActionResponse implements Iterable<GetField>, T
|
||||||
return getResult.getSource();
|
return getResult.getSource();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated Use {@link GetResponse#getSource()} instead
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
public Map<String, GetField> getFields() {
|
public Map<String, GetField> getFields() {
|
||||||
return getResult.getFields();
|
return getResult.getFields();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated Use {@link GetResponse#getSource()} instead
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
public GetField getField(String name) {
|
public GetField getField(String name) {
|
||||||
return getResult.field(name);
|
return getResult.field(name);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue