java.lang.Object
co.elastic.clients.elasticsearch._types.query_dsl.QueryBase
co.elastic.clients.elasticsearch._types.query_dsl.RegexpQuery
All Implemented Interfaces:
QueryVariant, JsonpSerializable

@JsonpDeserializable public class RegexpQuery extends QueryBase implements QueryVariant
See Also:
  • Field Details

  • Method Details

    • of

    • _queryKind

      public Query.Kind _queryKind()
      Query variant kind.
      Specified by:
      _queryKind in interface QueryVariant
    • field

      public final String field()
      Required - The target field
    • caseInsensitive

      @Nullable public final Boolean caseInsensitive()
      Allows case insensitive matching of the regular expression value with the indexed field values when set to true. When false, case sensitivity of matching depends on the underlying field’s mapping.

      API name: case_insensitive

    • flags

      @Nullable public final String flags()
      Enables optional operators for the regular expression.

      API name: flags

    • maxDeterminizedStates

      @Nullable public final Integer maxDeterminizedStates()
      Maximum number of automaton states required for the query.

      API name: max_determinized_states

    • rewrite

      @Nullable public final String rewrite()
      Method used to rewrite the query.

      API name: rewrite

    • value

      public final String value()
      Required - Regular expression for terms you wish to find in the provided field.

      API name: value

    • serializeInternal

      protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Overrides:
      serializeInternal in class QueryBase
    • setupRegexpQueryDeserializer

      protected static void setupRegexpQueryDeserializer(ObjectDeserializer<RegexpQuery.Builder> op)