Class VertexDefinition

java.lang.Object
co.elastic.clients.elasticsearch.graph.VertexDefinition
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable public class VertexDefinition extends Object implements JsonpSerializable
See Also:
  • Field Details

  • Method Details

    • of

    • exclude

      public final List<String> exclude()
      Prevents the specified terms from being included in the results.

      API name: exclude

    • field

      public final String field()
      Required - Identifies a field in the documents of interest.

      API name: field

    • include

      public final List<VertexInclude> include()
      Identifies the terms of interest that form the starting points from which you want to spider out.

      API name: include

    • minDocCount

      @Nullable public final Long minDocCount()
      Specifies how many documents must contain a pair of terms before it is considered to be a useful connection. This setting acts as a certainty threshold.

      API name: min_doc_count

    • shardMinDocCount

      @Nullable public final Long shardMinDocCount()
      Controls how many documents on a particular shard have to contain a pair of terms before the connection is returned for global consideration.

      API name: shard_min_doc_count

    • size

      @Nullable public final Integer size()
      Specifies the maximum number of vertex terms returned for each field.

      API name: size

    • serialize

      public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • setupVertexDefinitionDeserializer

      protected static void setupVertexDefinitionDeserializer(ObjectDeserializer<VertexDefinition.Builder> op)