Class ContentPath

java.lang.Object
org.opensearch.index.mapper.ContentPath

@PublicApi(since="1.0.0") public final class ContentPath extends Object
JSON Path for a document / field
Opensearch.api:
  • Constructor Details

    • ContentPath

      public ContentPath()
    • ContentPath

      public ContentPath(int offset)
      Constructs a json path with an offset. The offset will result an offset number of path elements to not be included in pathAsText(String).
    • ContentPath

      public ContentPath(String path)
  • Method Details

    • add

      public void add(String name)
    • remove

      public void remove()
    • pathAsText

      public String pathAsText(String name)
    • length

      public int length()