Class GetInferenceFieldsAction.Request

All Implemented Interfaces:
Writeable, org.elasticsearch.core.RefCounted, TaskAwareRequest, TransportRequest
Enclosing class:
GetInferenceFieldsAction

public static class GetInferenceFieldsAction.Request extends ActionRequest
  • Constructor Details

    • Request

      public Request(Set<String> indices, Map<String,Float> fields, boolean resolveWildcards, boolean useDefaultFields, @Nullable String query)
    • Request

      public Request(Set<String> indices, Map<String,Float> fields, boolean resolveWildcards, boolean useDefaultFields, @Nullable String query, @Nullable IndicesOptions indicesOptions)

      Constructs a request to get inference fields.

      If useDefaultFields is true and fields is empty, then the field pattern map will be derived from the value of IndexSettings.DEFAULT_FIELD_SETTING for each index.

      If query is null, then no inference results will be generated. This can be useful in scenarios where the caller only needs to check for the existence of inference fields.

      Parameters:
      indices - The indices to get inference fields for.
      fields - The field pattern map, where the key is the field pattern and the value is the pattern weight.
      resolveWildcards - If true, wildcards in field patterns will be resolved. Otherwise, only explicit matches will be returned.
      useDefaultFields - If true, default fields will be used if fields is empty.
      query - The query to generate inference results for.
      indicesOptions - The IndicesOptions to use when resolving indices.
    • Request

      public Request(StreamInput in) throws IOException
      Throws:
      IOException
  • Method Details