elasticsearch-py の API リファレンス
elasticsearch-py (elastic/elasticsearch-py) の公開 API 344 件 —— クラス 172、関数 106、メソッド 66。実際のソースを静的解析して抽出した正確なシグネチャを掲載しています。
リポジトリ: elastic/elasticsearch-py
| 種別 | 件数 |
|---|---|
| クラス | 172 |
| 関数 | 106 |
| メソッド | 66 |
API 一覧
class
elasticsearch._async.client.AsyncElasticsearchElasticsearch low-level client.
method
elasticsearch._async.client.AsyncElasticsearch.cancel_reindex(*task_id:str, *error_trace:t.Optional[bool]=None, *filter_path:t.Optional[t.Union[str, t.Sequence[str]]]=None, *human:t.Optional[bool]=None, *pretty:t.Optional[bool]=None, *wait_for_completion:t.Optional[bool]=None) -> ObjectApiResponse[t.Any]..
method
elasticsearch._async.client.AsyncElasticsearch.close() -> NoneCloses the Transport and all internal connections
method
elasticsearch._async.client.AsyncElasticsearch.delete_by_query_rethrottle(*task_id:str, *requests_per_second:float, *error_trace:t.Optional[bool]=None, *filter_path:t.Optional[t.Union[str, t.Sequence[str]]]=None, *human:t.Optional[bool]=None, *pretty:t.Optional[bool]=None) -> ObjectApiResponse[t.Any]..
method
elasticsearch._async.client.AsyncElasticsearch.get_script_context(*error_trace:t.Optional[bool]=None, *filter_path:t.Optional[t.Union[str, t.Sequence[str]]]=None, *human:t.Optional[bool]=None, *pretty:t.Optional[bool]=None) -> ObjectApiResponse[t.Any]..
method
elasticsearch._async.client.AsyncElasticsearch.get_script_languages(*error_trace:t.Optional[bool]=None, *filter_path:t.Optional[t.Union[str, t.Sequence[str]]]=None, *human:t.Optional[bool]=None, *pretty:t.Optional[bool]=None) -> ObjectApiResponse[t.Any]..
method
elasticsearch._async.client.AsyncElasticsearch.info(*error_trace:t.Optional[bool]=None, *filter_path:t.Optional[t.Union[str, t.Sequence[str]]]=None, *human:t.Optional[bool]=None, *pretty:t.Optional[bool]=None) -> ObjectApiResponse[t.Any]..
method
elasticsearch._async.client.AsyncElasticsearch.list_reindex(*detailed:t.Optional[bool]=None, *error_trace:t.Optional[bool]=None, *filter_path:t.Optional[t.Union[str, t.Sequence[str]]]=None, *human:t.Optional[bool]=None, *pretty:t.Optional[bool]=None) -> ObjectApiResponse[t.Any]..
method
elasticsearch._async.client.AsyncElasticsearch.update_by_query_rethrottle(*task_id:str, *requests_per_second:float, *error_trace:t.Optional[bool]=None, *filter_path:t.Optional[t.Union[str, t.Sequence[str]]]=None, *human:t.Optional[bool]=None, *pretty:t.Optional[bool]=None) -> ObjectApiResponse[t.Any]..
method
elasticsearch._async.client.inference.InferenceClient.delete_region_policy(*error_trace:t.Optional[bool]=None, *filter_path:t.Optional[t.Union[str, t.Sequence[str]]]=None, *human:t.Optional[bool]=None, *pretty:t.Optional[bool]=None) -> ObjectApiResponse[t.Any]..
method
elasticsearch._async.client.inference.InferenceClient.get_region_policy(*error_trace:t.Optional[bool]=None, *filter_path:t.Optional[t.Union[str, t.Sequence[str]]]=None, *human:t.Optional[bool]=None, *pretty:t.Optional[bool]=None) -> ObjectApiResponse[t.Any]..
class
elasticsearch._sync.client.ElasticsearchElasticsearch low-level client.
method
elasticsearch._sync.client.Elasticsearch.cancel_reindex(*task_id:str, *error_trace:t.Optional[bool]=None, *filter_path:t.Optional[t.Union[str, t.Sequence[str]]]=None, *human:t.Optional[bool]=None, *pretty:t.Optional[bool]=None, *wait_for_completion:t.Optional[bool]=None) -> ObjectApiResponse[t.Any]..
method
elasticsearch._sync.client.Elasticsearch.close() -> NoneCloses the Transport and all internal connections
method
elasticsearch._sync.client.Elasticsearch.delete_by_query_rethrottle(*task_id:str, *requests_per_second:float, *error_trace:t.Optional[bool]=None, *filter_path:t.Optional[t.Union[str, t.Sequence[str]]]=None, *human:t.Optional[bool]=None, *pretty:t.Optional[bool]=None) -> ObjectApiResponse[t.Any]..
method
elasticsearch._sync.client.Elasticsearch.get_script_context(*error_trace:t.Optional[bool]=None, *filter_path:t.Optional[t.Union[str, t.Sequence[str]]]=None, *human:t.Optional[bool]=None, *pretty:t.Optional[bool]=None) -> ObjectApiResponse[t.Any]..
method
elasticsearch._sync.client.Elasticsearch.get_script_languages(*error_trace:t.Optional[bool]=None, *filter_path:t.Optional[t.Union[str, t.Sequence[str]]]=None, *human:t.Optional[bool]=None, *pretty:t.Optional[bool]=None) -> ObjectApiResponse[t.Any]..
method
elasticsearch._sync.client.Elasticsearch.info(*error_trace:t.Optional[bool]=None, *filter_path:t.Optional[t.Union[str, t.Sequence[str]]]=None, *human:t.Optional[bool]=None, *pretty:t.Optional[bool]=None) -> ObjectApiResponse[t.Any]..
method
elasticsearch._sync.client.Elasticsearch.list_reindex(*detailed:t.Optional[bool]=None, *error_trace:t.Optional[bool]=None, *filter_path:t.Optional[t.Union[str, t.Sequence[str]]]=None, *human:t.Optional[bool]=None, *pretty:t.Optional[bool]=None) -> ObjectApiResponse[t.Any]..
method
elasticsearch._sync.client.Elasticsearch.update_by_query_rethrottle(*task_id:str, *requests_per_second:float, *error_trace:t.Optional[bool]=None, *filter_path:t.Optional[t.Union[str, t.Sequence[str]]]=None, *human:t.Optional[bool]=None, *pretty:t.Optional[bool]=None) -> ObjectApiResponse[t.Any]..
method
elasticsearch._sync.client.inference.InferenceClient.delete_region_policy(*error_trace:t.Optional[bool]=None, *filter_path:t.Optional[t.Union[str, t.Sequence[str]]]=None, *human:t.Optional[bool]=None, *pretty:t.Optional[bool]=None) -> ObjectApiResponse[t.Any]..
method
elasticsearch._sync.client.inference.InferenceClient.get_region_policy(*error_trace:t.Optional[bool]=None, *filter_path:t.Optional[t.Union[str, t.Sequence[str]]]=None, *human:t.Optional[bool]=None, *pretty:t.Optional[bool]=None) -> ObjectApiResponse[t.Any]..
func
elasticsearch._sync.client.utils.cloud_id_to_node_configs(cloud_id:str) -> List[NodeConfig]Transforms an Elastic Cloud ID into a NodeConfig
func
elasticsearch._sync.client.utils.hosts_to_node_configs(hosts:_TYPE_HOSTS) -> List[NodeConfig]Transforms the many formats of 'hosts' into NodeConfigs
func
elasticsearch._sync.client.utils.is_requests_http_auth(http_auth:Any) -> boolDetect if an http_auth value is a custom Requests auth object
func
elasticsearch.compat.safe_thread(target:Callable[..., Any], *args:Any, **kwargs:Any) -> Iterator[Thread]Run a thread within a context manager block.
method
elasticsearch.dsl._sync.document.Document.delete(using:Optional[UsingType]=None, index:Optional[str]=None, **kwargs:Any) -> NoneDelete the instance in elasticsearch.
method
elasticsearch.dsl._sync.index.Index.close(using:Optional[UsingType]=None, **kwargs:Any) -> 'ObjectApiResponse[Any]'Closes the index in elasticsearch.
method
elasticsearch.dsl._sync.index.Index.create(using:Optional[UsingType]=None, **kwargs:Any) -> 'ObjectApiResponse[Any]'Creates the index in elasticsearch.
method
elasticsearch.dsl._sync.index.Index.delete(using:Optional[UsingType]=None, **kwargs:Any) -> 'ObjectApiResponse[Any]'Deletes the index in elasticsearch.
method
elasticsearch.dsl._sync.index.Index.delete_alias(using:Optional[UsingType]=None, **kwargs:Any) -> 'ObjectApiResponse[Any]'Delete specific alias.
method
elasticsearch.dsl._sync.index.Index.flush(using:Optional[UsingType]=None, **kwargs:Any) -> 'ObjectApiResponse[Any]'Performs a flush operation on the index.
method
elasticsearch.dsl._sync.index.Index.get_alias(using:Optional[UsingType]=None, **kwargs:Any) -> 'ObjectApiResponse[Any]'Retrieve a specified alias.
method
elasticsearch.dsl._sync.index.Index.get_settings(using:Optional[UsingType]=None, **kwargs:Any) -> 'ObjectApiResponse[Any]'Retrieve settings for the index.
method
elasticsearch.dsl._sync.index.Index.open(using:Optional[UsingType]=None, **kwargs:Any) -> 'ObjectApiResponse[Any]'Opens the index in elasticsearch.
method
elasticsearch.dsl._sync.index.Index.put_alias(using:Optional[UsingType]=None, **kwargs:Any) -> 'ObjectApiResponse[Any]'Create an alias for the index.
method
elasticsearch.dsl._sync.index.Index.refresh(using:Optional[UsingType]=None, **kwargs:Any) -> 'ObjectApiResponse[Any]'Performs a refresh operation on the index.
class
elasticsearch.dsl.aggs.Line:arg point: (required) The name of the geo_point field.
class
elasticsearch.dsl.aggs.RateCalculates a rate of documents or a field in each bucket.
method
elasticsearch.dsl.connections.Connections.add_connection(alias:str, conn:_T) -> NoneAdd a connection object, it will be passed through as-is.
method
elasticsearch.dsl.connections.Connections.remove_connection(alias:str) -> NoneRemove connection from the registry.
class
elasticsearch.dsl.document_base.InnerDocCommon class for inner documents like Object or Nested
class
elasticsearch.dsl.document_base.InstrumentedExpressionProxy object for a ES|QL expression.
method
elasticsearch.dsl.document_base.InstrumentedExpression.is_null() -> 'InstrumentedExpression'Compare the expression against NULL.
method
elasticsearch.dsl.document_base.InstrumentedExpression.like(*patterns:str) -> 'InstrumentedExpression'Filter the expression using a string pattern.
method
elasticsearch.dsl.document_base.InstrumentedExpression.match(query:str) -> 'InstrumentedExpression'Perform a match query on the field.
method
elasticsearch.dsl.document_base.InstrumentedExpression.rlike(*patterns:str) -> 'InstrumentedExpression'Filter the expression using a regular expression.
class
elasticsearch.dsl.document_base.InstrumentedFieldProxy object for a mapped document field.
class
elasticsearch.dsl.document_base.MappedClass that represents the type of a mapped field.
class
elasticsearch.dsl.faceted_search_base.FacetA facet on faceted search.
method
elasticsearch.dsl.faceted_search_base.Facet.add_filter(filter_values:List[FilterValueType]) -> Optional[Query]Construct a filter.
method
elasticsearch.dsl.faceted_search_base.Facet.get_aggregation() -> Agg[_R]Return the aggregation object.
method
elasticsearch.dsl.faceted_search_base.Facet.get_metric(bucket:'BucketData[_R]') -> intReturn a metric, by default doc_count for a bucket.
method
elasticsearch.dsl.faceted_search_base.Facet.get_value(bucket:'BucketData[_R]') -> Anyreturn a value representing a bucket.
method
elasticsearch.dsl.faceted_search_base.Facet.get_value_filter(filter_value:FilterValueType) -> QueryConstruct a filter for an individual value
method
elasticsearch.dsl.faceted_search_base.Facet.is_filtered(key:str, filter_values:List[FilterValueType]) -> boolIs a filter active on the given key.
class
elasticsearch.dsl.field.Alias:arg path: :arg meta: Metadata about the field.
class
elasticsearch.dsl.field.ConstantKeyword:arg value: :arg meta: Metadata about the field.
class
elasticsearch.dsl.field.CountedKeyword:arg index: :arg meta: Metadata about the field.
class
elasticsearch.dsl.field.DenseVector:arg dims: Number of vector dimensions.
class
elasticsearch.dsl.field.NumpyDenseVectorA dense vector field that uses numpy arrays.
class
elasticsearch.dsl.field.Object:arg doc_class: base doc class that handles mapping.
class
elasticsearch.dsl.field.Percolator:arg meta: Metadata about the field.
class
elasticsearch.dsl.pydantic.AsyncBaseESModelMetaclassMetaclass for the AsyncBaseESModel class.
class
elasticsearch.dsl.pydantic.BaseESModelMetaclassMetaclass for the BaseESModel class.
class
elasticsearch.dsl.pydantic.ESMetaMetadata items associated with Elasticsearch documents.
class
elasticsearch.dsl.query.Common:arg _field: The field to use in this query.
class
elasticsearch.dsl.query.GeoPolygon:arg _field: The field to use in this query.
class
elasticsearch.dsl.query.IdsReturns documents based on their IDs.
class
elasticsearch.dsl.query.MatchAllMatches all documents, giving them all a `_score` of 1.0.
class
elasticsearch.dsl.query.MatchNoneMatches no documents.
class
elasticsearch.dsl.query.NestedWraps another query to search nested fields.
class
elasticsearch.dsl.query.PercolateMatches queries stored in an index.
class
elasticsearch.dsl.query.ScriptFilters documents based on a provided script.
class
elasticsearch.dsl.query.SpanContainingReturns matches which enclose another span query.
class
elasticsearch.dsl.query.SpanFirstMatches spans near the beginning of a field.
class
elasticsearch.dsl.query.SpanNearMatches spans which are near one another.
class
elasticsearch.dsl.query.SpanOrMatches the union of its span clauses.
class
elasticsearch.dsl.query.SpanTermMatches spans containing a term.
class
elasticsearch.dsl.response.AggResponseAn Elasticsearch aggregation response.
class
elasticsearch.dsl.response.ResponseAn Elasticsearch search response.
class
elasticsearch.dsl.response.UpdateByQueryResponseAn Elasticsearch update by query response.
method
elasticsearch.dsl.search_base.Request.doc_type(*doc_type:Union[type, str], **kwargs:Callable[[AttrDict[Any]], Any]) -> SelfSet the type to search through.
method
elasticsearch.dsl.search_base.Request.extra(**kwargs:Any) -> SelfAdd extra keys to the request body.
method
elasticsearch.dsl.search_base.Request.index(*index:Union[str, List[str], Tuple[str, ...]]) -> SelfSet the index for the search.
method
elasticsearch.dsl.search_base.Request.params(**kwargs:Any) -> SelfSpecify query params to be used when executing the search.
method
elasticsearch.dsl.search_base.Request.using(client:AnyUsingType) -> SelfAssociate the search request with an elasticsearch client.
class
elasticsearch.dsl.types.AdjacencyMatrixBucket:arg key: (required) :arg doc_count: (required)
class
elasticsearch.dsl.types.AvgAggregate:arg value: (required) The metric value.
class
elasticsearch.dsl.types.CardinalityAggregate:arg value: (required) :arg meta:
class
elasticsearch.dsl.types.CartesianBoundsAggregate:arg bounds: :arg meta:
class
elasticsearch.dsl.types.CartesianCentroidAggregate:arg count: (required) :arg location: :arg meta:
class
elasticsearch.dsl.types.CartesianPoint:arg x: (required) :arg y: (required)
class
elasticsearch.dsl.types.ChangePointAggregate:arg type: (required) :arg bucket: :arg meta:
class
elasticsearch.dsl.types.ChangePointBucket:arg key: (required) :arg doc_count: (required)
class
elasticsearch.dsl.types.ChildrenAggregate:arg doc_count: (required) :arg meta:
class
elasticsearch.dsl.types.CompositeBucket:arg key: (required) :arg doc_count: (required)
class
elasticsearch.dsl.types.CustomCategorizeTextAnalyzer:arg char_filter: :arg tokenizer: :arg filter:
class
elasticsearch.dsl.types.DateRangeAggregateResult of a `date_range` aggregation.
class
elasticsearch.dsl.types.DerivativeAggregate:arg value: (required) The metric value.
class
elasticsearch.dsl.types.DfsProfile:arg statistics: :arg knn:
class
elasticsearch.dsl.types.Dip:arg p_value: (required) :arg change_point: (required)
class
elasticsearch.dsl.types.DistributionChange:arg p_value: (required) :arg change_point: (required)
class
elasticsearch.dsl.types.Embedding:arg input: (required) :arg inference_id: :arg timeout:
class
elasticsearch.dsl.types.EmptyObjectFor empty Class assignments
class
elasticsearch.dsl.types.ErrorCauseCause and details about a request failure.
class
elasticsearch.dsl.types.EwmaModelSettings:arg alpha:
class
elasticsearch.dsl.types.ExtendedBounds:arg max: Maximum value for the bound.
class
elasticsearch.dsl.types.FetchProfileDebug:arg stored_fields: :arg fast_path:
class
elasticsearch.dsl.types.FieldLookup:arg id: (required) `id` of the document.
class
elasticsearch.dsl.types.FilterAggregate:arg doc_count: (required) :arg meta:
class
elasticsearch.dsl.types.FiltersBucket:arg doc_count: (required) :arg key:
class
elasticsearch.dsl.types.GeoBoundsAggregate:arg bounds: :arg meta:
class
elasticsearch.dsl.types.GeoCentroidAggregate:arg count: (required) :arg location: :arg meta:
class
elasticsearch.dsl.types.GeoDistanceAggregateResult of a `geo_distance` aggregation.
class
elasticsearch.dsl.types.GeoDistanceSort:arg _field: The field to use in this query.
class
elasticsearch.dsl.types.GeoHashGridBucket:arg key: (required) :arg doc_count: (required)
class
elasticsearch.dsl.types.GeoHashLocation:arg geohash: (required)
class
elasticsearch.dsl.types.GeoHexGridBucket:arg key: (required) :arg doc_count: (required)
class
elasticsearch.dsl.types.GeoLineA GeoJson GeoLine.
class
elasticsearch.dsl.types.GeoLinePoint:arg field: (required) The name of the geo_point field.
class
elasticsearch.dsl.types.GeoPolygonPoints:arg points: (required)
class
elasticsearch.dsl.types.GeoTileGridBucket:arg key: (required) :arg doc_count: (required)
class
elasticsearch.dsl.types.GlobalAggregate:arg doc_count: (required) :arg meta:
class
elasticsearch.dsl.types.HdrPercentileRanksAggregate:arg values: (required) :arg meta:
class
elasticsearch.dsl.types.HdrPercentilesAggregate:arg values: (required) :arg meta:
class
elasticsearch.dsl.types.HoltLinearModelSettings:arg alpha: :arg beta:
class
elasticsearch.dsl.types.Indeterminable:arg reason: (required)
class
elasticsearch.dsl.types.InnerHitsResult:arg hits: (required)
class
elasticsearch.dsl.types.IntervalsAllOf:arg intervals: (required) An array of rules to combine.
class
elasticsearch.dsl.types.IntervalsAnyOf:arg intervals: (required) An array of rules to match.
class
elasticsearch.dsl.types.IntervalsFuzzy:arg term: (required) The term to match.
class
elasticsearch.dsl.types.IntervalsRange:arg analyzer: Analyzer used to analyze the `prefix`.
class
elasticsearch.dsl.types.IntervalsRegexp:arg pattern: (required) Regex pattern.
class
elasticsearch.dsl.types.IpRangeAggregationRange:arg from: Start of the range.
class
elasticsearch.dsl.types.IpRangeBucket:arg doc_count: (required) :arg key: :arg from: :arg to:
class
elasticsearch.dsl.types.LikeDocument:arg doc: A document not present in the index.
class
elasticsearch.dsl.types.MatrixStatsAggregate:arg doc_count: (required) :arg fields: :arg meta:
class
elasticsearch.dsl.types.MaxAggregate:arg value: (required) The metric value.
class
elasticsearch.dsl.types.MedianAbsoluteDeviationAggregate:arg value: (required) The metric value.
class
elasticsearch.dsl.types.MinAggregate:arg value: (required) The metric value.
class
elasticsearch.dsl.types.MissingAggregate:arg doc_count: (required) :arg meta:
class
elasticsearch.dsl.types.MultiTermLookup:arg field: A field from which to retrieve terms.
class
elasticsearch.dsl.types.NestedAggregate:arg doc_count: (required) :arg meta:
class
elasticsearch.dsl.types.NumericFielddata:arg format: (required)
class
elasticsearch.dsl.types.ParentAggregate:arg doc_count: (required) :arg meta:
class
elasticsearch.dsl.types.PercentilesBucketAggregate:arg values: (required) :arg meta:
class
elasticsearch.dsl.types.PinnedDoc:arg _id: (required) The unique document ID.
class
elasticsearch.dsl.types.RateAggregate:arg value: (required) :arg value_as_string: :arg meta:
class
elasticsearch.dsl.types.Retries:arg bulk: (required) The number of bulk actions retried.
class
elasticsearch.dsl.types.ReverseNestedAggregate:arg doc_count: (required) :arg meta:
class
elasticsearch.dsl.types.SamplerAggregate:arg doc_count: (required) :arg meta:
class
elasticsearch.dsl.types.ScoreSort:arg order:
class
elasticsearch.dsl.types.Script:arg source: The script source.
class
elasticsearch.dsl.types.ScriptField:arg script: (required) :arg ignore_failure:
class
elasticsearch.dsl.types.ScriptedHeuristic:arg script: (required)
class
elasticsearch.dsl.types.ScriptedMetricAggregate:arg value: (required) :arg meta:
class
elasticsearch.dsl.types.SemanticTextIndexOptions:arg dense_vector: :arg sparse_vector:
class
elasticsearch.dsl.types.ShapeFieldQuery:arg indexed_shape: Queries using a pre-indexed shape.
class
elasticsearch.dsl.types.SimpleValueAggregate:arg value: (required) The metric value.
class
elasticsearch.dsl.types.SortOptions:arg _field: The field to use in this query.
class
elasticsearch.dsl.types.SpanContainingQuery:arg big: (required) Can be any span query.
class
elasticsearch.dsl.types.SpanWithinQuery:arg big: (required) Can be any span query.
class
elasticsearch.dsl.types.Spike:arg p_value: (required) :arg change_point: (required)
class
elasticsearch.dsl.types.StatsAggregateStatistics aggregation result.
class
elasticsearch.dsl.types.StepChange:arg p_value: (required) :arg change_point: (required)
class
elasticsearch.dsl.types.StringRareTermsBucket:arg key: (required) :arg doc_count: (required)
class
elasticsearch.dsl.types.SumAggregateSum aggregation result.
class
elasticsearch.dsl.types.TDigestPercentileRanksAggregate:arg values: (required) :arg meta:
class
elasticsearch.dsl.types.TDigestPercentilesAggregate:arg values: (required) :arg meta:
class
elasticsearch.dsl.types.TTestAggregate:arg value: (required) :arg value_as_string: :arg meta:
class
elasticsearch.dsl.types.TestPopulation:arg field: (required) The field to aggregate.
class
elasticsearch.dsl.types.TextIndexPrefixes:arg max_chars: :arg min_chars:
class
elasticsearch.dsl.types.TimeSeriesBucket:arg key: (required) :arg doc_count: (required)
class
elasticsearch.dsl.types.TopHitsAggregate:arg hits: (required) :arg meta:
class
elasticsearch.dsl.types.TopMetrics:arg sort: (required) :arg metrics: (required)
class
elasticsearch.dsl.types.TopMetricsAggregate:arg top: (required) :arg meta:
class
elasticsearch.dsl.types.TopMetricsValue:arg field: (required) A field to return as a metric.
class
elasticsearch.dsl.types.TotalHits:arg relation: (required) :arg value: (required)
class
elasticsearch.dsl.types.UnmappedSamplerAggregate:arg doc_count: (required) :arg meta:
class
elasticsearch.dsl.types.ValueCountAggregateValue count aggregation result.
class
elasticsearch.dsl.types.WeightedAvgAggregateWeighted average aggregation result.
class
elasticsearch.dsl.types.WktGeoBounds:arg wkt: (required)
class
elasticsearch.dsl.wrappers.AggregationRange:arg from: Start of the range (inclusive).
class
elasticsearch.esql.esql.ChangePointImplementation of the ``CHANGE POINT`` processing command.
method
elasticsearch.esql.esql.ChangePoint.as_(type_name:str, pvalue_name:str) -> 'ChangePoint'Continuation of the ``CHANGE_POINT`` command.
method
elasticsearch.esql.esql.ChangePoint.on(key:FieldType) -> 'ChangePoint'Continuation of the ``CHANGE_POINT`` command.
class
elasticsearch.esql.esql.CompletionImplementation of the ``COMPLETION`` processing command.
method
elasticsearch.esql.esql.Completion.with_(inference_id:str) -> 'Completion'Continuation of the ``COMPLETION`` command.
class
elasticsearch.esql.esql.DissectImplementation of the ``DISSECT`` processing command.
method
elasticsearch.esql.esql.Dissect.append_separator(separator:str) -> 'Dissect'Continuation of the ``DISSECT`` command.
class
elasticsearch.esql.esql.DropImplementation of the ``DROP`` processing command.
method
elasticsearch.esql.esql.ESQLBase.drop(*columns:FieldType) -> 'Drop'The ``DROP`` processing command removes one or more columns.
method
elasticsearch.esql.esql.ESQLBase.rename(**columns:FieldType) -> 'Rename'The ``RENAME`` processing command renames one or more columns.
method
elasticsearch.esql.esql.ESQLBase.sample(probability:float) -> 'Sample'The ``SAMPLE`` command samples a fraction of the table rows.
class
elasticsearch.esql.esql.EnrichImplementation of the ``ENRICH`` processing command.
method
elasticsearch.esql.esql.Enrich.on(match_field:FieldType) -> 'Enrich'Continuation of the ``ENRICH`` command.
method
elasticsearch.esql.esql.Enrich.with_(*fields:FieldType, **named_fields:FieldType) -> 'Enrich'Continuation of the ``ENRICH`` command.
class
elasticsearch.esql.esql.EvalImplementation of the ``EVAL`` processing command.
class
elasticsearch.esql.esql.ForkImplementation of the ``FORK`` processing command.
class
elasticsearch.esql.esql.FromImplementation of the ``FROM`` source command.
method
elasticsearch.esql.esql.From.metadata(*fields:FieldType) -> 'From'Continuation of the ``FROM`` and ``TS`` source commands.
class
elasticsearch.esql.esql.FuseImplementation of the ``FUSE`` processing command.
class
elasticsearch.esql.esql.GrokImplementation of the ``GROK`` processing command.
class
elasticsearch.esql.esql.InlineStatsImplementation of the ``INLINE STATS`` processing command.
class
elasticsearch.esql.esql.KeepImplementation of the ``KEEP`` processing command.
class
elasticsearch.esql.esql.LimitImplementation of the ``LIMIT`` processing command.
class
elasticsearch.esql.esql.LookupJoinImplementation of the ``LOOKUP JOIN`` processing command.
method
elasticsearch.esql.esql.LookupJoin.on(field:FieldType) -> 'LookupJoin'Continuation of the ``LOOKUP JOIN`` command.
class
elasticsearch.esql.esql.MetricsInfoImplementation of the ``METRICS_INFO`` processing command.
class
elasticsearch.esql.esql.MmrImplementation of the ``MMR`` processing command.
method
elasticsearch.esql.esql.Mmr.mmr_limit(max_number_of_rows:int) -> 'Mmr'Continuation of the ``MMR`` command.
method
elasticsearch.esql.esql.Mmr.with_(lambda_:float) -> 'Mmr'Continuation of the ``MMR`` command.
class
elasticsearch.esql.esql.MvExpandImplementation of the ``MV_EXPAND`` processing command.
class
elasticsearch.esql.esql.RenameImplementation of the ``RENAME`` processing command.
class
elasticsearch.esql.esql.RerankImplementation of the ``RERANK`` processing command.
method
elasticsearch.esql.esql.Rerank.on(*fields:str) -> 'Rerank'Continuation of the ``RERANK`` command.
method
elasticsearch.esql.esql.Rerank.with_(inference_id:str) -> 'Rerank'Continuation of the ``RERANK`` command.
class
elasticsearch.esql.esql.RowImplementation of the ``ROW`` source command.
class
elasticsearch.esql.esql.SampleImplementation of the ``SAMPLE`` processing command.
class
elasticsearch.esql.esql.SetImplementation of the ``SET`` query directive.
class
elasticsearch.esql.esql.ShowImplementation of the ``SHOW`` source command.
class
elasticsearch.esql.esql.SortImplementation of the ``SORT`` processing command.
class
elasticsearch.esql.esql.StatsImplementation of the ``STATS`` processing command.
method
elasticsearch.esql.esql.Stats.by(*grouping_expressions:ExpressionType) -> 'Stats'Continuation of the ``STATS`` and ``INLINE STATS`` commands.
class
elasticsearch.esql.esql.TSImplementation of the ``TS`` source command.
class
elasticsearch.esql.esql.TsInfoImplementation of the ``TS_INFO`` processing command.
class
elasticsearch.esql.esql.UriPartsImplementation of the ``URI_PARTS`` processing command.
class
elasticsearch.esql.esql.UserAgentImplementation of the ``USER_AGENT`` processing command.
class
elasticsearch.esql.esql.WhereImplementation of the ``WHERE`` processing command.
func
elasticsearch.esql.esql.and_(*expressions:InstrumentedExpression) -> 'InstrumentedExpression'Combine two or more expressions with the AND operator.
func
elasticsearch.esql.esql.not_(expression:InstrumentedExpression) -> 'InstrumentedExpression'Negate an expression.
func
elasticsearch.esql.esql.or_(*expressions:InstrumentedExpression) -> 'InstrumentedExpression'Combine two or more expressions with the OR operator.
func
elasticsearch.esql.functions.abs(number:ExpressionType) -> InstrumentedExpressionReturns the absolute value.
func
elasticsearch.esql.functions.acosh(number:ExpressionType) -> InstrumentedExpressionReturns the inverse hyperbolic cosine of a number.
func
elasticsearch.esql.functions.asinh(number:ExpressionType) -> InstrumentedExpressionReturns the inverse hyperbolic sine of a number.
func
elasticsearch.esql.functions.atanh(number:ExpressionType) -> InstrumentedExpressionReturns the inverse hyperbolic tangent of a number.
func
elasticsearch.esql.functions.avg(number:ExpressionType) -> InstrumentedExpressionThe average of a numeric field.
func
elasticsearch.esql.functions.bit_length(string:ExpressionType) -> InstrumentedExpressionReturns the bit length of a string.
func
elasticsearch.esql.functions.byte_length(string:ExpressionType) -> InstrumentedExpressionReturns the byte length of a string.
func
elasticsearch.esql.functions.case(*conditions:ExpressionType) -> InstrumentedExpressionAccepts pairs of conditions and values.
func
elasticsearch.esql.functions.cbrt(number:ExpressionType) -> InstrumentedExpressionReturns the cube root of a number.
func
elasticsearch.esql.functions.ceil(number:ExpressionType) -> InstrumentedExpressionRound a number up to the nearest integer.
func
elasticsearch.esql.functions.coalesce(first:ExpressionType, rest:ExpressionType) -> InstrumentedExpressionReturns the first of its arguments that is not null.
func
elasticsearch.esql.functions.concat(*strings:ExpressionType) -> InstrumentedExpressionConcatenates two or more strings.
func
elasticsearch.esql.functions.cos(angle:ExpressionType) -> InstrumentedExpressionReturns the cosine of an angle.
func
elasticsearch.esql.functions.cosh(number:ExpressionType) -> InstrumentedExpressionReturns the hyperbolic cosine of a number.
func
elasticsearch.esql.functions.count(field:ExpressionType) -> InstrumentedExpressionReturns the total number (count) of input values.
func
elasticsearch.esql.functions.count_distinct(field:ExpressionType, precision:ExpressionType) -> InstrumentedExpressionReturns the approximate number of distinct values.
func
elasticsearch.esql.functions.count_over_time(field:ExpressionType, window:ExpressionType=None) -> InstrumentedExpressionCalculates the count over time value of a field.
func
elasticsearch.esql.functions.e() -> InstrumentedExpressionReturns Euler’s number).
func
elasticsearch.esql.functions.floor(number:ExpressionType) -> InstrumentedExpressionRound a number down to the nearest integer.
func
elasticsearch.esql.functions.from_base64(string:ExpressionType) -> InstrumentedExpressionDecode a base64 string.
func
elasticsearch.esql.functions.greatest(first:ExpressionType, rest:ExpressionType) -> InstrumentedExpressionReturns the maximum value from multiple columns.
func
elasticsearch.esql.functions.hypot(number1:ExpressionType, number2:ExpressionType) -> InstrumentedExpressionReturns the hypotenuse of two numbers.
func
elasticsearch.esql.functions.idelta(field:ExpressionType, window:ExpressionType) -> InstrumentedExpressionCalculates the idelta of a gauge.
func
elasticsearch.esql.functions.ip_prefix(ip:ExpressionType, prefix_length_v4:ExpressionType, prefix_length_v6:ExpressionType) -> InstrumentedExpressionTruncates an IP to a given prefix length.
func
elasticsearch.esql.functions.irate(field:ExpressionType, window:ExpressionType) -> InstrumentedExpressionCalculates the irate of a counter field.
func
elasticsearch.esql.functions.kql(query:ExpressionType, options:ExpressionType=None) -> InstrumentedExpressionPerforms a KQL query.
func
elasticsearch.esql.functions.least(first:ExpressionType, rest:ExpressionType) -> InstrumentedExpressionReturns the minimum value from multiple columns.
func
elasticsearch.esql.functions.length(string:ExpressionType) -> InstrumentedExpressionReturns the character length of a string.
func
elasticsearch.esql.functions.log(base:ExpressionType, number:ExpressionType) -> InstrumentedExpressionReturns the logarithm of a value to a base.
func
elasticsearch.esql.functions.log10(number:ExpressionType) -> InstrumentedExpressionReturns the logarithm of a value to base 10.
func
elasticsearch.esql.functions.ltrim(string:ExpressionType) -> InstrumentedExpressionRemoves leading whitespaces from a string.
func
elasticsearch.esql.functions.max(field:ExpressionType) -> InstrumentedExpressionThe maximum value of a field.
func
elasticsearch.esql.functions.max_over_time(field:ExpressionType, window:ExpressionType=None) -> InstrumentedExpressionCalculates the maximum over time value of a field.
func
elasticsearch.esql.functions.min(field:ExpressionType) -> InstrumentedExpressionThe minimum value of a field.
func
elasticsearch.esql.functions.min_over_time(field:ExpressionType, window:ExpressionType=None) -> InstrumentedExpressionCalculates the minimum over time value of a field.
func
elasticsearch.esql.functions.mv_append(field1:ExpressionType, field2:ExpressionType) -> InstrumentedExpressionConcatenates values of two multi-value fields.
func
elasticsearch.esql.functions.mv_dedupe(field:ExpressionType) -> InstrumentedExpressionRemove duplicate values from a multivalued field.
func
elasticsearch.esql.functions.mv_sort(field:ExpressionType, order:ExpressionType) -> InstrumentedExpressionSorts a multivalued field in lexicographical order.
func
elasticsearch.esql.functions.now() -> InstrumentedExpressionReturns current date and time.
func
elasticsearch.esql.functions.percentile_over_time(field:ExpressionType, percentile:ExpressionType) -> InstrumentedExpressionCalculates the percentile over time of a field.
func
elasticsearch.esql.functions.qstr(query:ExpressionType, options:ExpressionType=None) -> InstrumentedExpressionPerforms a query string query.
func
elasticsearch.esql.functions.round_to(field:ExpressionType, points:ExpressionType) -> InstrumentedExpressionRounds down to one of a list of fixed points.
func
elasticsearch.esql.functions.rtrim(string:ExpressionType) -> InstrumentedExpressionRemoves trailing whitespaces from a string.
func
elasticsearch.esql.functions.sample(field:ExpressionType, limit:ExpressionType) -> InstrumentedExpressionCollects sample values for a field.
func
elasticsearch.esql.functions.score(query:ExpressionType) -> InstrumentedExpressionScores an expression.
func
elasticsearch.esql.functions.sha1(input:ExpressionType) -> InstrumentedExpressionComputes the SHA1 hash of the input.
func
elasticsearch.esql.functions.sha256(input:ExpressionType) -> InstrumentedExpressionComputes the SHA256 hash of the input.
func
elasticsearch.esql.functions.signum(number:ExpressionType) -> InstrumentedExpressionReturns the sign of the given number.
func
elasticsearch.esql.functions.sin(angle:ExpressionType) -> InstrumentedExpressionReturns the sine of an angle.
func
elasticsearch.esql.functions.sinh(number:ExpressionType) -> InstrumentedExpressionReturns the hyperbolic sine of a number.
func
elasticsearch.esql.functions.space(number:ExpressionType) -> InstrumentedExpressionReturns a string made of `number` spaces.
func
elasticsearch.esql.functions.split(string:ExpressionType, delim:ExpressionType) -> InstrumentedExpressionSplit a single valued string into multiple strings.
func
elasticsearch.esql.functions.sqrt(number:ExpressionType) -> InstrumentedExpressionReturns the square root of a number.
func
elasticsearch.esql.functions.st_distance(geom_a:ExpressionType, geom_b:ExpressionType) -> InstrumentedExpressionComputes the distance between two points.
func
elasticsearch.esql.functions.st_intersects(geom_a:ExpressionType, geom_b:ExpressionType) -> InstrumentedExpressionReturns true if two geometries intersect.
func
elasticsearch.esql.functions.st_isempty(geometry:ExpressionType) -> InstrumentedExpressionReturns true if the supplied geometry is empty.
func
elasticsearch.esql.functions.st_npoints(geometry:ExpressionType) -> InstrumentedExpressionCounts the number of points in the supplied geometry.
func
elasticsearch.esql.functions.st_x(point:ExpressionType) -> InstrumentedExpressionExtracts the `x` coordinate from the supplied point.
func
elasticsearch.esql.functions.st_y(point:ExpressionType) -> InstrumentedExpressionExtracts the `y` coordinate from the supplied point.
func
elasticsearch.esql.functions.std_dev(number:ExpressionType) -> InstrumentedExpressionThe population standard deviation of a numeric field.
func
elasticsearch.esql.functions.sum(number:ExpressionType) -> InstrumentedExpressionThe sum of a numeric expression.
func
elasticsearch.esql.functions.sum_over_time(field:ExpressionType, window:ExpressionType=None) -> InstrumentedExpressionCalculates the sum over time value of a field.
func
elasticsearch.esql.functions.tan(angle:ExpressionType) -> InstrumentedExpressionReturns the tangent of an angle.
func
elasticsearch.esql.functions.tanh(number:ExpressionType) -> InstrumentedExpressionReturns the hyperbolic tangent of a number.
func
elasticsearch.esql.functions.term(field:ExpressionType, query:ExpressionType) -> InstrumentedExpressionPerforms a Term query on the specified field.
func
elasticsearch.esql.functions.to_aggregate_metric_double(number:ExpressionType) -> InstrumentedExpressionEncode a numeric to an aggregate_metric_double.
func
elasticsearch.esql.functions.to_base64(string:ExpressionType) -> InstrumentedExpressionEncode a string to a base64 string.
func
elasticsearch.esql.functions.to_boolean(field:ExpressionType) -> InstrumentedExpressionConverts an input value to a boolean value.
func
elasticsearch.esql.functions.to_cartesianpoint(field:ExpressionType) -> InstrumentedExpressionConverts an input value to a `cartesian_point` value.
func
elasticsearch.esql.functions.to_cartesianshape(field:ExpressionType) -> InstrumentedExpressionConverts an input value to a `cartesian_shape` value.
func
elasticsearch.esql.functions.to_dateperiod(field:ExpressionType) -> InstrumentedExpressionConverts an input value into a `date_period` value.
func
elasticsearch.esql.functions.to_datetime(field:ExpressionType) -> InstrumentedExpressionConverts an input value to a date value.
func
elasticsearch.esql.functions.to_degrees(number:ExpressionType) -> InstrumentedExpressionConverts a number in radians to degrees).
func
elasticsearch.esql.functions.to_double(field:ExpressionType) -> InstrumentedExpressionConverts an input value to a double value.
func
elasticsearch.esql.functions.to_geohash(field:ExpressionType) -> InstrumentedExpressionConverts an input value to a `geohash` value.
func
elasticsearch.esql.functions.to_geohex(field:ExpressionType) -> InstrumentedExpressionConverts an input value to a `geohex` value.
func
elasticsearch.esql.functions.to_geopoint(field:ExpressionType) -> InstrumentedExpressionConverts an input value to a `geo_point` value.
func
elasticsearch.esql.functions.to_geoshape(field:ExpressionType) -> InstrumentedExpressionConverts an input value to a `geo_shape` value.
func
elasticsearch.esql.functions.to_geotile(field:ExpressionType) -> InstrumentedExpressionConverts an input value to a `geotile` value.
func
elasticsearch.esql.functions.to_integer(field:ExpressionType, base:ExpressionType=None) -> InstrumentedExpressionConverts an input value to an integer value.
func
elasticsearch.esql.functions.to_ip(field:ExpressionType, options:ExpressionType=None) -> InstrumentedExpressionConverts an input string to an IP value.
func
elasticsearch.esql.functions.to_long(field:ExpressionType, base:ExpressionType=None) -> InstrumentedExpressionConverts the input value to a long.
func
elasticsearch.esql.functions.to_radians(number:ExpressionType) -> InstrumentedExpressionConverts a number in degrees) to radians.
func
elasticsearch.esql.functions.to_string(field:ExpressionType) -> InstrumentedExpressionConverts an input value into a string.
func
elasticsearch.esql.functions.to_timeduration(field:ExpressionType) -> InstrumentedExpressionConverts an input value into a `time_duration` value.
func
elasticsearch.esql.functions.to_unsigned_long(field:ExpressionType) -> InstrumentedExpressionConverts an input value to an unsigned long value.
func
elasticsearch.esql.functions.to_version(field:ExpressionType) -> InstrumentedExpressionConverts an input string to a version value.
func
elasticsearch.esql.functions.top(field:ExpressionType, limit:ExpressionType, order:ExpressionType, output_field:ExpressionType=None) -> InstrumentedExpressionCollects the top values for a field.
func
elasticsearch.esql.functions.trim(string:ExpressionType) -> InstrumentedExpressionRemoves leading and trailing whitespaces from a string.
func
elasticsearch.esql.functions.url_encode(string:ExpressionType) -> InstrumentedExpressionURL-encodes the input.
func
elasticsearch.esql.functions.url_encode_component(string:ExpressionType) -> InstrumentedExpressionURL-encodes the input.
func
elasticsearch.esql.functions.v_l1_norm(left:ExpressionType, right:ExpressionType) -> InstrumentedExpressionCalculates the l1 norm between two dense_vectors.
func
elasticsearch.esql.functions.v_l2_norm(left:ExpressionType, right:ExpressionType) -> InstrumentedExpressionCalculates the l2 norm between two dense_vectors.
func
elasticsearch.esql.functions.v_magnitude(input:ExpressionType) -> InstrumentedExpressionCalculates the magnitude of a dense_vector.
func
elasticsearch.esql.functions.values(field:ExpressionType) -> InstrumentedExpressionReturns unique (deduplicated) values as a multivalued field.
func
elasticsearch.esql.functions.variance(number:ExpressionType) -> InstrumentedExpressionThe population variance of a numeric field.
func
elasticsearch.esql.functions.weighted_avg(number:ExpressionType, weight:ExpressionType) -> InstrumentedExpressionThe weighted average of a numeric expression.
method
elasticsearch.exceptions.ApiError.error() -> strBackwards-compatible way to access ``self.message``
method
elasticsearch.exceptions.ApiError.info() -> AnyBackwards-compatible way to access ``self.body``
class
elasticsearch.exceptions.AuthenticationExceptionException representing a 401 status code.
class
elasticsearch.exceptions.AuthorizationExceptionException representing a 403 status code.
class
elasticsearch.exceptions.BadRequestErrorException representing a 400 status code.
class
elasticsearch.exceptions.ConflictErrorException representing a 409 status code.
class
elasticsearch.exceptions.GeneralAvailabilityWarningWarning that is raised when a feature is not yet GA.
class
elasticsearch.exceptions.NotFoundErrorException representing a 404 status code.
class
elasticsearch.helpers.vectorstore._async.strategies.AsyncDenseVectorStrategyK-nearest-neighbors retrieval.
class
elasticsearch.helpers.vectorstore._sync.strategies.DenseVectorStrategyK-nearest-neighbors retrieval.
class
elasticsearch.serializer.PyArrowSerializerPyArrow serializer for deserializing Arrow Stream data.
class
utils.dsl-generator.ElasticsearchSchemaOperations related to the Elasticsearch schema.
func
utils.dsl-generator.add_not_set(type_)Add DefaultType to a Python type hint.
func
utils.dsl-generator.generate_types_py(schema, filename)Generate types.py
この情報について
掲載しているシグネチャは elastic/elasticsearch-py の公開ソースコードを
Python の ast モジュールで静的解析し、引数名・デフォルト値・
型注釈・戻り値型をそのまま抽出したものです。実装コードは保存していません。
詳しくは仕組みの解説をご覧ください。