Class Text

java.lang.Object
org.opensearch.core.common.text.Text
All Implemented Interfaces:
Comparable<Text>, ToXContent, ToXContentFragment

@PublicApi(since="1.0.0") public final class Text extends Object implements Comparable<Text>, ToXContentFragment
Both String and BytesReference representation of the text. Starts with one of those, and if the other is requests, caches the other one in a local reference so no additional conversion will be needed.
Opensearch.api: