From 3495eb1a30395e508dca7ed35c1f3dfdc4ee94cb Mon Sep 17 00:00:00 2001 From: Oliver Eilhard Date: Sat, 30 Mar 2019 16:16:00 +0100 Subject: [PATCH] Use 7.0 instead of 7.x in the documentation links The `7.x` is used by the technical writers to prepare the next version of the documentation, which might not be accurate. --- bulk.go | 4 +- bulk_delete_request.go | 4 +- bulk_index_request.go | 8 +- bulk_update_request.go | 12 +-- cat_aliases.go | 2 +- cat_allocation.go | 2 +- cat_count.go | 2 +- cat_health.go | 2 +- cat_indices.go | 2 +- clear_scroll.go | 2 +- client.go | 8 +- cluster_health.go | 2 +- cluster_reroute.go | 2 +- cluster_state.go | 2 +- cluster_stats.go | 2 +- delete.go | 4 +- delete_by_query.go | 6 +- exists.go | 4 +- explain.go | 2 +- fetch_source_context.go | 2 +- field_caps.go | 2 +- get.go | 4 +- highlight.go | 2 +- index.go | 6 +- indices_analyze.go | 4 +- indices_close.go | 2 +- indices_create.go | 2 +- indices_delete.go | 2 +- indices_delete_template.go | 2 +- indices_exists.go | 2 +- indices_exists_template.go | 2 +- indices_flush.go | 2 +- indices_flush_synced.go | 2 +- indices_forcemerge.go | 2 +- indices_get.go | 2 +- indices_get_aliases.go | 2 +- indices_get_field_mapping.go | 2 +- indices_get_mapping.go | 2 +- indices_get_settings.go | 2 +- indices_get_template.go | 2 +- indices_open.go | 2 +- indices_put_alias.go | 2 +- indices_put_mapping.go | 2 +- indices_put_settings.go | 2 +- indices_put_template.go | 2 +- indices_refresh.go | 2 +- indices_rollover.go | 2 +- indices_segments.go | 2 +- indices_shrink.go | 2 +- indices_stats.go | 2 +- ingest_delete_pipeline.go | 2 +- ingest_get_pipeline.go | 2 +- ingest_put_pipeline.go | 2 +- ingest_simulate_pipeline.go | 2 +- inner_hit.go | 2 +- mget.go | 4 +- mtermvectors.go | 2 +- nodes_info.go | 2 +- nodes_stats.go | 2 +- recipes/bulk_insert/bulk_insert.go | 2 +- recipes/sliced_scroll/sliced_scroll.go | 2 +- recipes/suggesters/completion/main.go | 2 +- reindex.go | 10 +- script.go | 4 +- script_delete.go | 2 +- script_get.go | 2 +- script_put.go | 2 +- scroll.go | 8 +- search.go | 18 ++-- search_aggs.go | 100 +++++++++--------- search_aggs_bucket_adjacency_matrix.go | 2 +- search_aggs_bucket_children.go | 2 +- search_aggs_bucket_composite.go | 10 +- search_aggs_bucket_date_histogram.go | 4 +- search_aggs_bucket_date_range.go | 2 +- search_aggs_bucket_diversified_sampler.go | 2 +- search_aggs_bucket_filter.go | 2 +- search_aggs_bucket_filters.go | 2 +- search_aggs_bucket_geo_distance.go | 2 +- search_aggs_bucket_geohash_grid.go | 4 +- search_aggs_bucket_global.go | 2 +- search_aggs_bucket_histogram.go | 2 +- search_aggs_bucket_ip_range.go | 2 +- search_aggs_bucket_missing.go | 2 +- search_aggs_bucket_nested.go | 2 +- search_aggs_bucket_range.go | 2 +- search_aggs_bucket_reverse_nested.go | 2 +- search_aggs_bucket_sampler.go | 2 +- search_aggs_bucket_significant_terms.go | 16 +-- search_aggs_bucket_significant_text.go | 2 +- search_aggs_bucket_terms.go | 2 +- search_aggs_matrix_stats.go | 2 +- search_aggs_metrics_avg.go | 2 +- search_aggs_metrics_cardinality.go | 2 +- search_aggs_metrics_extended_stats.go | 2 +- search_aggs_metrics_geo_bounds.go | 2 +- search_aggs_metrics_geo_centroid.go | 2 +- search_aggs_metrics_max.go | 2 +- search_aggs_metrics_min.go | 2 +- search_aggs_metrics_percentile_ranks.go | 2 +- search_aggs_metrics_percentiles.go | 2 +- search_aggs_metrics_scripted_metric.go | 2 +- search_aggs_metrics_stats.go | 2 +- search_aggs_metrics_sum.go | 2 +- search_aggs_metrics_top_hits.go | 2 +- search_aggs_metrics_value_count.go | 2 +- search_aggs_metrics_weighted_avg.go | 2 +- search_aggs_pipeline_avg_bucket.go | 2 +- search_aggs_pipeline_bucket_script.go | 2 +- search_aggs_pipeline_bucket_selector.go | 2 +- search_aggs_pipeline_bucket_sort.go | 2 +- search_aggs_pipeline_cumulative_sum.go | 2 +- search_aggs_pipeline_derivative.go | 2 +- search_aggs_pipeline_extended_stats_bucket.go | 2 +- search_aggs_pipeline_max_bucket.go | 2 +- search_aggs_pipeline_min_bucket.go | 2 +- search_aggs_pipeline_mov_avg.go | 14 +-- search_aggs_pipeline_mov_fn.go | 4 +- search_aggs_pipeline_percentiles_bucket.go | 2 +- search_aggs_pipeline_serial_diff.go | 2 +- search_aggs_pipeline_stats_bucket.go | 2 +- search_aggs_pipeline_sum_bucket.go | 2 +- search_collapse_builder.go | 2 +- search_queries_bool.go | 2 +- search_queries_boosting.go | 2 +- search_queries_common_terms.go | 2 +- search_queries_constant_score.go | 2 +- search_queries_dis_max.go | 2 +- search_queries_exists.go | 2 +- search_queries_fsq.go | 2 +- search_queries_fsq_score_funcs.go | 28 ++--- search_queries_fuzzy.go | 2 +- search_queries_geo_bounding_box.go | 2 +- search_queries_geo_distance.go | 2 +- search_queries_geo_polygon.go | 2 +- search_queries_has_child.go | 2 +- search_queries_has_parent.go | 2 +- search_queries_ids.go | 2 +- search_queries_match.go | 2 +- search_queries_match_all.go | 2 +- search_queries_match_none.go | 2 +- search_queries_match_phrase.go | 2 +- search_queries_match_phrase_prefix.go | 2 +- search_queries_more_like_this.go | 2 +- search_queries_multi_match.go | 2 +- search_queries_nested.go | 2 +- search_queries_parent_id.go | 2 +- search_queries_percolator.go | 2 +- search_queries_prefix.go | 2 +- search_queries_query_string.go | 2 +- search_queries_range.go | 2 +- search_queries_regexp.go | 2 +- search_queries_script.go | 2 +- search_queries_simple_query_string.go | 2 +- search_queries_slice.go | 2 +- search_queries_term.go | 2 +- search_queries_terms.go | 2 +- search_queries_terms_set.go | 2 +- search_queries_type.go | 2 +- search_queries_wildcard.go | 2 +- search_queries_wrapper.go | 2 +- search_request.go | 8 +- search_shards.go | 2 +- search_source.go | 6 +- search_terms_lookup.go | 2 +- search_test.go | 4 +- snapshot_create.go | 2 +- snapshot_create_repository.go | 2 +- snapshot_delete.go | 2 +- snapshot_delete_repository.go | 2 +- snapshot_get.go | 2 +- snapshot_get_repository.go | 2 +- snapshot_verify_repository.go | 2 +- sort.go | 12 +-- suggester_completion.go | 8 +- suggester_context.go | 2 +- suggester_context_category.go | 4 +- suggester_context_geo.go | 4 +- suggester_phrase.go | 10 +- suggester_term.go | 2 +- tasks_cancel.go | 2 +- tasks_get_task.go | 2 +- tasks_list.go | 2 +- termvectors.go | 4 +- update.go | 4 +- update_by_query.go | 4 +- validate.go | 2 +- xpack_info.go | 2 +- xpack_security_delete_role.go | 2 +- xpack_security_delete_role_mapping.go | 2 +- xpack_security_get_role.go | 2 +- xpack_security_get_role_mapping.go | 2 +- xpack_security_put_role.go | 2 +- xpack_security_put_role_mapping.go | 2 +- xpack_watcher_ack_watch.go | 2 +- xpack_watcher_activate_watch.go | 2 +- xpack_watcher_deactivate_watch.go | 2 +- xpack_watcher_delete_watch.go | 2 +- xpack_watcher_execute_watch.go | 2 +- xpack_watcher_get_watch.go | 2 +- xpack_watcher_put_watch.go | 2 +- xpack_watcher_start.go | 2 +- xpack_watcher_stats.go | 2 +- xpack_watcher_stop.go | 2 +- 204 files changed, 347 insertions(+), 347 deletions(-) diff --git a/bulk.go b/bulk.go index a9136326c..5ff5ebfb2 100644 --- a/bulk.go +++ b/bulk.go @@ -23,7 +23,7 @@ import ( // reuse BulkService to send many batches. You do not have to create a new // BulkService for each batch. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/docs-bulk.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/docs-bulk.html // for more details. type BulkService struct { client *Client @@ -94,7 +94,7 @@ func (s *BulkService) Timeout(timeout string) *BulkService { // changes to be made visible by a refresh before reying), or "false" // (no refresh related actions). The default value is "false". // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/docs-refresh.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/docs-refresh.html // for details. func (s *BulkService) Refresh(refresh string) *BulkService { s.refresh = refresh diff --git a/bulk_delete_request.go b/bulk_delete_request.go index 0655ae1c0..7ba2a562f 100644 --- a/bulk_delete_request.go +++ b/bulk_delete_request.go @@ -16,7 +16,7 @@ import ( // BulkDeleteRequest is a request to remove a document from Elasticsearch. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/docs-bulk.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/docs-bulk.html // for details. type BulkDeleteRequest struct { BulkableRequest @@ -128,7 +128,7 @@ func (r *BulkDeleteRequest) String() string { // Source returns the on-wire representation of the delete request, // split into an action-and-meta-data line and an (optional) source line. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/docs-bulk.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/docs-bulk.html // for details. func (r *BulkDeleteRequest) Source() ([]string, error) { if r.source != nil { diff --git a/bulk_index_request.go b/bulk_index_request.go index c027bc386..085d8e645 100644 --- a/bulk_index_request.go +++ b/bulk_index_request.go @@ -14,7 +14,7 @@ import ( // BulkIndexRequest is a request to add a document to Elasticsearch. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/docs-bulk.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/docs-bulk.html // for details. type BulkIndexRequest struct { BulkableRequest @@ -95,7 +95,7 @@ func (r *BulkIndexRequest) Id(id string) *BulkIndexRequest { // OpType specifies if this request should follow create-only or upsert // behavior. This follows the OpType of the standard document index API. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/docs-index_.html#operation-type +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/docs-index_.html#operation-type // for details. func (r *BulkIndexRequest) OpType(opType string) *BulkIndexRequest { r.opType = opType @@ -129,7 +129,7 @@ func (r *BulkIndexRequest) Version(version int64) *BulkIndexRequest { // VersionType specifies how versions are created. It can be e.g. internal, // external, external_gte, or force. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/docs-index_.html#index-versioning +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/docs-index_.html#index-versioning // for details. func (r *BulkIndexRequest) VersionType(versionType string) *BulkIndexRequest { r.versionType = versionType @@ -170,7 +170,7 @@ func (r *BulkIndexRequest) String() string { // Source returns the on-wire representation of the index request, // split into an action-and-meta-data line and an (optional) source line. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/docs-bulk.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/docs-bulk.html // for details. func (r *BulkIndexRequest) Source() ([]string, error) { // { "index" : { "_index" : "test", "_type" : "type1", "_id" : "1" } } diff --git a/bulk_update_request.go b/bulk_update_request.go index a8301cd81..9ad86c7d5 100644 --- a/bulk_update_request.go +++ b/bulk_update_request.go @@ -14,7 +14,7 @@ import ( // BulkUpdateRequest is a request to update a document in Elasticsearch. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/docs-bulk.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/docs-bulk.html // for details. type BulkUpdateRequest struct { BulkableRequest @@ -120,8 +120,8 @@ func (r *BulkUpdateRequest) Parent(parent string) *BulkUpdateRequest { } // Script specifies an update script. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/docs-bulk.html#bulk-update -// and https://www.elastic.co/guide/en/elasticsearch/reference/7.x/modules-scripting.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/docs-bulk.html#bulk-update +// and https://www.elastic.co/guide/en/elasticsearch/reference/7.0/modules-scripting.html // for details. func (r *BulkUpdateRequest) Script(script *Script) *BulkUpdateRequest { r.script = script @@ -132,7 +132,7 @@ func (r *BulkUpdateRequest) Script(script *Script) *BulkUpdateRequest { // ScripedUpsert specifies if your script will run regardless of // whether the document exists or not. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/docs-update.html#_literal_scripted_upsert_literal +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/docs-update.html#_literal_scripted_upsert_literal func (r *BulkUpdateRequest) ScriptedUpsert(upsert bool) *BulkUpdateRequest { r.scriptedUpsert = &upsert r.source = nil @@ -172,7 +172,7 @@ func (r *BulkUpdateRequest) Doc(doc interface{}) *BulkUpdateRequest { // DocAsUpsert indicates whether the contents of Doc should be used as // the Upsert value. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/docs-update.html#_literal_doc_as_upsert_literal +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/docs-update.html#_literal_doc_as_upsert_literal // for details. func (r *BulkUpdateRequest) DocAsUpsert(docAsUpsert bool) *BulkUpdateRequest { r.docAsUpsert = &docAsUpsert @@ -218,7 +218,7 @@ func (r *BulkUpdateRequest) String() string { // Source returns the on-wire representation of the update request, // split into an action-and-meta-data line and an (optional) source line. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/docs-bulk.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/docs-bulk.html // for details. func (r *BulkUpdateRequest) Source() ([]string, error) { // { "update" : { "_index" : "test", "_type" : "type1", "_id" : "1", ... } } diff --git a/cat_aliases.go b/cat_aliases.go index 2a6904481..f5605ae5f 100644 --- a/cat_aliases.go +++ b/cat_aliases.go @@ -16,7 +16,7 @@ import ( // CatAliasesService shows information about currently configured aliases // to indices including filter and routing infos. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/cat-aliases.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/cat-aliases.html // for details. type CatAliasesService struct { client *Client diff --git a/cat_allocation.go b/cat_allocation.go index 8c6991f85..2b9dc72fe 100644 --- a/cat_allocation.go +++ b/cat_allocation.go @@ -16,7 +16,7 @@ import ( // CatAllocationService provides a snapshot of how many shards are allocated // to each data node and how much disk space they are using. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/cat-allocation.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/cat-allocation.html // for details. type CatAllocationService struct { client *Client diff --git a/cat_count.go b/cat_count.go index d76554ec0..d4b77fdde 100644 --- a/cat_count.go +++ b/cat_count.go @@ -16,7 +16,7 @@ import ( // CatCountService provides quick access to the document count of the entire cluster, // or individual indices. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/cat-count.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/cat-count.html // for details. type CatCountService struct { client *Client diff --git a/cat_health.go b/cat_health.go index 4e6360090..923a5a000 100644 --- a/cat_health.go +++ b/cat_health.go @@ -14,7 +14,7 @@ import ( // CatHealthService returns a terse representation of the same information // as /_cluster/health. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/cat-health.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/cat-health.html // for details. type CatHealthService struct { client *Client diff --git a/cat_indices.go b/cat_indices.go index e03051362..0f7f455fe 100644 --- a/cat_indices.go +++ b/cat_indices.go @@ -16,7 +16,7 @@ import ( // CatIndicesService returns the list of indices plus some additional // information about them. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/cat-indices.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/cat-indices.html // for details. type CatIndicesService struct { client *Client diff --git a/clear_scroll.go b/clear_scroll.go index 5d3370424..b65fc0fb2 100644 --- a/clear_scroll.go +++ b/clear_scroll.go @@ -12,7 +12,7 @@ import ( // ClearScrollService clears one or more scroll contexts by their ids. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-request-scroll.html#_clear_scroll_api +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-request-scroll.html#_clear_scroll_api // for details. type ClearScrollService struct { client *Client diff --git a/client.go b/client.go index 62d1f6206..f88d8cbb4 100644 --- a/client.go +++ b/client.go @@ -158,7 +158,7 @@ type Client struct { // // If the sniffer is enabled (the default), the new client then sniffes // the cluster via the Nodes Info API -// (see https://www.elastic.co/guide/en/elasticsearch/reference/7.x/cluster-nodes-info.html#cluster-nodes-info). +// (see https://www.elastic.co/guide/en/elasticsearch/reference/7.0/cluster-nodes-info.html#cluster-nodes-info). // It uses the URLs specified by the caller. The caller is responsible // to only pass a list of URLs of nodes that belong to the same cluster. // This sniffing process is run on startup and periodically. @@ -1456,7 +1456,7 @@ func (c *Client) BulkProcessor() *BulkProcessorService { // Reindex copies data from a source index into a destination index. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/docs-reindex.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/docs-reindex.html // for details on the Reindex API. func (c *Client) Reindex() *ReindexService { return NewReindexService(c) @@ -1622,7 +1622,7 @@ func (c *Client) Flush(indices ...string) *IndicesFlushService { // SyncedFlush performs a synced flush. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/indices-synced-flush.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/indices-synced-flush.html // for more details on synched flushes and how they differ from a normal // Flush. func (c *Client) SyncedFlush(indices ...string) *IndicesSyncedFlushService { @@ -1894,7 +1894,7 @@ func (c *Client) XPackSecurityDeleteRole(roleName string) *XPackSecurityDeleteRo } // TODO: Clear role cache API -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/security-api-clear-role-cache.html +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/security-api-clear-role-cache.html // -- X-Pack Watcher -- diff --git a/cluster_health.go b/cluster_health.go index c8b4d1735..8fe99acaf 100644 --- a/cluster_health.go +++ b/cluster_health.go @@ -15,7 +15,7 @@ import ( // ClusterHealthService allows to get a very simple status on the health of the cluster. // -// See http://www.elastic.co/guide/en/elasticsearch/reference/7.x/cluster-health.html +// See http://www.elastic.co/guide/en/elasticsearch/reference/7.0/cluster-health.html // for details. type ClusterHealthService struct { client *Client diff --git a/cluster_reroute.go b/cluster_reroute.go index ff5d1ae59..92499f47c 100644 --- a/cluster_reroute.go +++ b/cluster_reroute.go @@ -17,7 +17,7 @@ import ( // one node to another explicitly, an allocation can be cancelled, and // an unassigned shard can be explicitly allocated to a specific node. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/cluster-reroute.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/cluster-reroute.html // for details. type ClusterRerouteService struct { client *Client diff --git a/cluster_state.go b/cluster_state.go index db99b3902..1de49bc50 100644 --- a/cluster_state.go +++ b/cluster_state.go @@ -15,7 +15,7 @@ import ( // ClusterStateService allows to get a comprehensive state information of the whole cluster. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/cluster-state.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/cluster-state.html // for details. type ClusterStateService struct { client *Client diff --git a/cluster_stats.go b/cluster_stats.go index cac903c2b..44723435b 100644 --- a/cluster_stats.go +++ b/cluster_stats.go @@ -14,7 +14,7 @@ import ( ) // ClusterStatsService is documented at -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/cluster-stats.html. +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/cluster-stats.html. type ClusterStatsService struct { client *Client pretty bool diff --git a/delete.go b/delete.go index c8d62951f..b4dec6cc2 100644 --- a/delete.go +++ b/delete.go @@ -16,7 +16,7 @@ import ( // DeleteService allows to delete a typed JSON document from a specified // index based on its id. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/docs-delete.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/docs-delete.html // for details. type DeleteService struct { client *Client @@ -103,7 +103,7 @@ func (s *DeleteService) Parent(parent string) *DeleteService { // Refresh the index after performing the operation. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/docs-refresh.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/docs-refresh.html // for details. func (s *DeleteService) Refresh(refresh string) *DeleteService { s.refresh = refresh diff --git a/delete_by_query.go b/delete_by_query.go index 1d5292151..9b0edc5ff 100644 --- a/delete_by_query.go +++ b/delete_by_query.go @@ -15,7 +15,7 @@ import ( ) // DeleteByQueryService deletes documents that match a query. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/docs-delete-by-query.html. +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/docs-delete-by-query.html. type DeleteByQueryService struct { client *Client index []string @@ -246,7 +246,7 @@ func (s *DeleteByQueryService) Query(query Query) *DeleteByQueryService { // Refresh indicates whether the effected indexes should be refreshed. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/docs-refresh.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/docs-refresh.html // for details. func (s *DeleteByQueryService) Refresh(refresh string) *DeleteByQueryService { s.refresh = refresh @@ -309,7 +309,7 @@ func (s *DeleteByQueryService) Size(size int) *DeleteByQueryService { // Slices represents the number of slices (default: 1). // It used to be a number, but can be set to "auto" as of 6.7. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/docs-delete-by-query.html#docs-delete-by-query-automatic-slice +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/docs-delete-by-query.html#docs-delete-by-query-automatic-slice // for details. func (s *DeleteByQueryService) Slices(slices interface{}) *DeleteByQueryService { s.slices = slices diff --git a/exists.go b/exists.go index a9178b8cf..7612dc9a4 100644 --- a/exists.go +++ b/exists.go @@ -15,7 +15,7 @@ import ( // ExistsService checks for the existence of a document using HEAD. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/docs-get.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/docs-get.html // for details. type ExistsService struct { client *Client @@ -71,7 +71,7 @@ func (s *ExistsService) Realtime(realtime bool) *ExistsService { // Refresh the shard containing the document before performing the operation. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/docs-refresh.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/docs-refresh.html // for details. func (s *ExistsService) Refresh(refresh string) *ExistsService { s.refresh = refresh diff --git a/explain.go b/explain.go index 98d6c93d9..315a9cf6a 100644 --- a/explain.go +++ b/explain.go @@ -15,7 +15,7 @@ import ( // ExplainService computes a score explanation for a query and // a specific document. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-explain.html. +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-explain.html. type ExplainService struct { client *Client pretty bool diff --git a/fetch_source_context.go b/fetch_source_context.go index af403bd90..7a4a76941 100644 --- a/fetch_source_context.go +++ b/fetch_source_context.go @@ -14,7 +14,7 @@ import ( // with various endpoints, e.g. when searching for documents, retrieving // individual documents, or even updating documents. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-request-source-filtering.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-request-source-filtering.html // for details. type FetchSourceContext struct { fetchSource bool diff --git a/field_caps.go b/field_caps.go index 81c3acd0c..fa85dbc62 100644 --- a/field_caps.go +++ b/field_caps.go @@ -16,7 +16,7 @@ import ( // FieldCapsService allows retrieving the capabilities of fields among multiple indices. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-field-caps.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-field-caps.html // for details type FieldCapsService struct { client *Client diff --git a/get.go b/get.go index bbc74b562..ba1900689 100644 --- a/get.go +++ b/get.go @@ -17,7 +17,7 @@ import ( // GetService allows to get a typed JSON document from the index based // on its id. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/docs-get.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/docs-get.html // for details. type GetService struct { client *Client @@ -105,7 +105,7 @@ func (s *GetService) FetchSourceContext(fetchSourceContext *FetchSourceContext) // Refresh the shard containing the document before performing the operation. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/docs-refresh.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/docs-refresh.html // for details. func (s *GetService) Refresh(refresh string) *GetService { s.refresh = refresh diff --git a/highlight.go b/highlight.go index e63a1824d..b25a7fa78 100644 --- a/highlight.go +++ b/highlight.go @@ -6,7 +6,7 @@ package elastic // Highlight allows highlighting search results on one or more fields. // For details, see: -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-request-highlighting.html +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-request-highlighting.html type Highlight struct { fields []*HighlighterField tagsSchema *string diff --git a/index.go b/index.go index 901d8a968..8f88bd3a3 100644 --- a/index.go +++ b/index.go @@ -15,7 +15,7 @@ import ( // IndexService adds or updates a typed JSON document in a specified index, // making it searchable. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/docs-index_.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/docs-index_.html // for details. type IndexService struct { client *Client @@ -84,7 +84,7 @@ func (s *IndexService) Pipeline(pipeline string) *IndexService { // Refresh the index after performing the operation. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/docs-refresh.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/docs-refresh.html // for details. func (s *IndexService) Refresh(refresh string) *IndexService { s.refresh = refresh @@ -178,7 +178,7 @@ func (s *IndexService) buildURL() (string, string, url.Values, error) { }) } else { // Automatic ID generation - // See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/docs-index_.html#index-creation + // See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/docs-index_.html#index-creation method = "POST" path, err = uritemplates.Expand("/{index}/{type}/", map[string]string{ "index": s.index, diff --git a/indices_analyze.go b/indices_analyze.go index b28275279..17f79b4b7 100644 --- a/indices_analyze.go +++ b/indices_analyze.go @@ -15,7 +15,7 @@ import ( // IndicesAnalyzeService performs the analysis process on a text and returns // the tokens breakdown of the text. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/indices-analyze.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/indices-analyze.html // for detail. type IndicesAnalyzeService struct { client *Client @@ -185,7 +185,7 @@ func (s *IndicesAnalyzeService) Do(ctx context.Context) (*IndicesAnalyzeResponse } else { // Request parameters are deprecated in 5.1.1, and we must use a JSON // structure in the body to pass the parameters. - // See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/indices-analyze.html + // See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/indices-analyze.html body = s.request } diff --git a/indices_close.go b/indices_close.go index ab533aed2..6a06b68db 100644 --- a/indices_close.go +++ b/indices_close.go @@ -14,7 +14,7 @@ import ( // IndicesCloseService closes an index. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/indices-open-close.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/indices-open-close.html // for details. type IndicesCloseService struct { client *Client diff --git a/indices_create.go b/indices_create.go index 9da1b8637..2896fd1a4 100644 --- a/indices_create.go +++ b/indices_create.go @@ -14,7 +14,7 @@ import ( // IndicesCreateService creates a new index. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/indices-create-index.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/indices-create-index.html // for details. type IndicesCreateService struct { client *Client diff --git a/indices_delete.go b/indices_delete.go index b319a91b2..8e1404534 100644 --- a/indices_delete.go +++ b/indices_delete.go @@ -15,7 +15,7 @@ import ( // IndicesDeleteService allows to delete existing indices. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/indices-delete-index.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/indices-delete-index.html // for details. type IndicesDeleteService struct { client *Client diff --git a/indices_delete_template.go b/indices_delete_template.go index 37421d22c..043cdffb9 100644 --- a/indices_delete_template.go +++ b/indices_delete_template.go @@ -13,7 +13,7 @@ import ( ) // IndicesDeleteTemplateService deletes index templates. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/indices-templates.html. +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/indices-templates.html. type IndicesDeleteTemplateService struct { client *Client pretty bool diff --git a/indices_exists.go b/indices_exists.go index 074318f75..11430e6e7 100644 --- a/indices_exists.go +++ b/indices_exists.go @@ -16,7 +16,7 @@ import ( // IndicesExistsService checks if an index or indices exist or not. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/indices-exists.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/indices-exists.html // for details. type IndicesExistsService struct { client *Client diff --git a/indices_exists_template.go b/indices_exists_template.go index 17517e355..a9539daa3 100644 --- a/indices_exists_template.go +++ b/indices_exists_template.go @@ -14,7 +14,7 @@ import ( ) // IndicesExistsTemplateService checks if a given template exists. -// See http://www.elastic.co/guide/en/elasticsearch/reference/7.x/indices-templates.html#indices-templates-exists +// See http://www.elastic.co/guide/en/elasticsearch/reference/7.0/indices-templates.html#indices-templates-exists // for documentation. type IndicesExistsTemplateService struct { client *Client diff --git a/indices_flush.go b/indices_flush.go index ef5edb693..5862e4bd4 100644 --- a/indices_flush.go +++ b/indices_flush.go @@ -17,7 +17,7 @@ import ( // basically frees memory from the index by flushing data to the index // storage and clearing the internal transaction log. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/indices-flush.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/indices-flush.html // for details. type IndicesFlushService struct { client *Client diff --git a/indices_flush_synced.go b/indices_flush_synced.go index da0f84676..9f8fdd97d 100644 --- a/indices_flush_synced.go +++ b/indices_flush_synced.go @@ -17,7 +17,7 @@ import ( // IndicesSyncedFlushService performs a normal flush, then adds a generated // unique marked (sync_id) to all shards. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/indices-synced-flush.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/indices-synced-flush.html // for details. type IndicesSyncedFlushService struct { client *Client diff --git a/indices_forcemerge.go b/indices_forcemerge.go index 21d6ae628..2d4bab316 100644 --- a/indices_forcemerge.go +++ b/indices_forcemerge.go @@ -18,7 +18,7 @@ import ( // within each shard. The force merge operation allows to reduce the number // of segments by merging them. // -// See http://www.elastic.co/guide/en/elasticsearch/reference/7.x/indices-forcemerge.html +// See http://www.elastic.co/guide/en/elasticsearch/reference/7.0/indices-forcemerge.html // for more information. type IndicesForcemergeService struct { client *Client diff --git a/indices_get.go b/indices_get.go index 13d6530ba..3bf94b577 100644 --- a/indices_get.go +++ b/indices_get.go @@ -15,7 +15,7 @@ import ( // IndicesGetService retrieves information about one or more indices. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/indices-get-index.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/indices-get-index.html // for more details. type IndicesGetService struct { client *Client diff --git a/indices_get_aliases.go b/indices_get_aliases.go index f75e05692..da4e4f9f4 100644 --- a/indices_get_aliases.go +++ b/indices_get_aliases.go @@ -15,7 +15,7 @@ import ( // AliasesService returns the aliases associated with one or more indices, or the // indices associated with one or more aliases, or a combination of those filters. -// See http://www.elastic.co/guide/en/elasticsearch/reference/7.x/indices-aliases.html. +// See http://www.elastic.co/guide/en/elasticsearch/reference/7.0/indices-aliases.html. type AliasesService struct { client *Client index []string diff --git a/indices_get_field_mapping.go b/indices_get_field_mapping.go index 00acbc5e7..7d6a5fc1a 100644 --- a/indices_get_field_mapping.go +++ b/indices_get_field_mapping.go @@ -16,7 +16,7 @@ import ( // IndicesGetFieldMappingService retrieves the mapping definitions for the fields in an index // or index/type. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/indices-get-field-mapping.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/indices-get-field-mapping.html // for details. type IndicesGetFieldMappingService struct { client *Client diff --git a/indices_get_mapping.go b/indices_get_mapping.go index c17c33c7c..d7e4077d1 100644 --- a/indices_get_mapping.go +++ b/indices_get_mapping.go @@ -16,7 +16,7 @@ import ( // IndicesGetMappingService retrieves the mapping definitions for an index or // index/type. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/indices-get-mapping.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/indices-get-mapping.html // for details. type IndicesGetMappingService struct { client *Client diff --git a/indices_get_settings.go b/indices_get_settings.go index 69f898f29..998fbcbad 100644 --- a/indices_get_settings.go +++ b/indices_get_settings.go @@ -16,7 +16,7 @@ import ( // IndicesGetSettingsService allows to retrieve settings of one // or more indices. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/indices-get-settings.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/indices-get-settings.html // for more details. type IndicesGetSettingsService struct { client *Client diff --git a/indices_get_template.go b/indices_get_template.go index e77616b3a..84566c416 100644 --- a/indices_get_template.go +++ b/indices_get_template.go @@ -14,7 +14,7 @@ import ( ) // IndicesGetTemplateService returns an index template. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/indices-templates.html. +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/indices-templates.html. type IndicesGetTemplateService struct { client *Client pretty bool diff --git a/indices_open.go b/indices_open.go index 17aa6af6c..5f3335e8f 100644 --- a/indices_open.go +++ b/indices_open.go @@ -14,7 +14,7 @@ import ( // IndicesOpenService opens an index. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/indices-open-close.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/indices-open-close.html // for details. type IndicesOpenService struct { client *Client diff --git a/indices_put_alias.go b/indices_put_alias.go index cd8423b4c..b59661ebe 100644 --- a/indices_put_alias.go +++ b/indices_put_alias.go @@ -238,7 +238,7 @@ func (a *AliasRemoveIndexAction) Source() (interface{}, error) { // -- Service -- // AliasService enables users to add or remove an alias. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/indices-aliases.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/indices-aliases.html // for details. type AliasService struct { client *Client diff --git a/indices_put_mapping.go b/indices_put_mapping.go index 89c943e7f..d9d50cb52 100644 --- a/indices_put_mapping.go +++ b/indices_put_mapping.go @@ -16,7 +16,7 @@ import ( // IndicesPutMappingService allows to register specific mapping definition // for a specific type. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/indices-put-mapping.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/indices-put-mapping.html // for details. type IndicesPutMappingService struct { client *Client diff --git a/indices_put_settings.go b/indices_put_settings.go index 5ee87c0e2..70afc3c99 100644 --- a/indices_put_settings.go +++ b/indices_put_settings.go @@ -17,7 +17,7 @@ import ( // real time. // // See the documentation at -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/indices-update-settings.html. +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/indices-update-settings.html. type IndicesPutSettingsService struct { client *Client pretty bool diff --git a/indices_put_template.go b/indices_put_template.go index be2948753..9e9713d42 100644 --- a/indices_put_template.go +++ b/indices_put_template.go @@ -13,7 +13,7 @@ import ( ) // IndicesPutTemplateService creates or updates index mappings. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/indices-templates.html. +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/indices-templates.html. type IndicesPutTemplateService struct { client *Client pretty bool diff --git a/indices_refresh.go b/indices_refresh.go index 1ed61a05e..88d24958f 100644 --- a/indices_refresh.go +++ b/indices_refresh.go @@ -14,7 +14,7 @@ import ( ) // RefreshService explicitly refreshes one or more indices. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/indices-refresh.html. +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/indices-refresh.html. type RefreshService struct { client *Client index []string diff --git a/indices_rollover.go b/indices_rollover.go index 006d8bde4..4a27af66b 100644 --- a/indices_rollover.go +++ b/indices_rollover.go @@ -17,7 +17,7 @@ import ( // existing index is considered to be too large or too old. // // It is documented at -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/indices-rollover-index.html. +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/indices-rollover-index.html. type IndicesRolloverService struct { client *Client pretty bool diff --git a/indices_segments.go b/indices_segments.go index ef87f1ad6..1170263a0 100644 --- a/indices_segments.go +++ b/indices_segments.go @@ -20,7 +20,7 @@ import ( // optimization information, data "wasted" on deletes, and so on. // // Find further documentation at -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/indices-segments.html. +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/indices-segments.html. type IndicesSegmentsService struct { client *Client pretty bool diff --git a/indices_shrink.go b/indices_shrink.go index ddcfd7b96..6d426aac4 100644 --- a/indices_shrink.go +++ b/indices_shrink.go @@ -17,7 +17,7 @@ import ( // new index with fewer primary shards. // // For further details, see -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/indices-shrink-index.html. +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/indices-shrink-index.html. type IndicesShrinkService struct { client *Client pretty bool diff --git a/indices_stats.go b/indices_stats.go index a7c88ec82..4479642bf 100644 --- a/indices_stats.go +++ b/indices_stats.go @@ -14,7 +14,7 @@ import ( ) // IndicesStatsService provides stats on various metrics of one or more -// indices. See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/indices-stats.html. +// indices. See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/indices-stats.html. type IndicesStatsService struct { client *Client pretty bool diff --git a/ingest_delete_pipeline.go b/ingest_delete_pipeline.go index 62da4467e..1c965560d 100644 --- a/ingest_delete_pipeline.go +++ b/ingest_delete_pipeline.go @@ -14,7 +14,7 @@ import ( ) // IngestDeletePipelineService deletes pipelines by ID. -// It is documented at https://www.elastic.co/guide/en/elasticsearch/reference/7.x/delete-pipeline-api.html. +// It is documented at https://www.elastic.co/guide/en/elasticsearch/reference/7.0/delete-pipeline-api.html. type IngestDeletePipelineService struct { client *Client pretty bool diff --git a/ingest_get_pipeline.go b/ingest_get_pipeline.go index 7f2b7122d..63be8ee64 100644 --- a/ingest_get_pipeline.go +++ b/ingest_get_pipeline.go @@ -14,7 +14,7 @@ import ( ) // IngestGetPipelineService returns pipelines based on ID. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/get-pipeline-api.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/get-pipeline-api.html // for documentation. type IngestGetPipelineService struct { client *Client diff --git a/ingest_put_pipeline.go b/ingest_put_pipeline.go index 422772bbd..b61181e0c 100644 --- a/ingest_put_pipeline.go +++ b/ingest_put_pipeline.go @@ -16,7 +16,7 @@ import ( // IngestPutPipelineService adds pipelines and updates existing pipelines in // the cluster. // -// It is documented at https://www.elastic.co/guide/en/elasticsearch/reference/7.x/put-pipeline-api.html. +// It is documented at https://www.elastic.co/guide/en/elasticsearch/reference/7.0/put-pipeline-api.html. type IngestPutPipelineService struct { client *Client pretty bool diff --git a/ingest_simulate_pipeline.go b/ingest_simulate_pipeline.go index ef132fae0..81c6b2b3d 100644 --- a/ingest_simulate_pipeline.go +++ b/ingest_simulate_pipeline.go @@ -17,7 +17,7 @@ import ( // documents provided in the body of the request. // // The API is documented at -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/simulate-pipeline-api.html. +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/simulate-pipeline-api.html. type IngestSimulatePipelineService struct { client *Client pretty bool diff --git a/inner_hit.go b/inner_hit.go index 8d870b786..803662646 100644 --- a/inner_hit.go +++ b/inner_hit.go @@ -7,7 +7,7 @@ package elastic // InnerHit implements a simple join for parent/child, nested, and even // top-level documents in Elasticsearch. // It is an experimental feature for Elasticsearch versions 1.5 (or greater). -// See http://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-request-inner-hits.html +// See http://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-request-inner-hits.html // for documentation. // // See the tests for SearchSource, HasChildFilter, HasChildQuery, diff --git a/mget.go b/mget.go index c41c8ff23..d7712c0d5 100644 --- a/mget.go +++ b/mget.go @@ -16,7 +16,7 @@ import ( // a docs array with all the fetched documents, each element similar // in structure to a document provided by the Get API. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/docs-multi-get.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/docs-multi-get.html // for details. type MgetService struct { client *Client @@ -46,7 +46,7 @@ func (s *MgetService) Preference(preference string) *MgetService { // Refresh the shard containing the document before performing the operation. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/docs-refresh.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/docs-refresh.html // for details. func (s *MgetService) Refresh(refresh string) *MgetService { s.refresh = refresh diff --git a/mtermvectors.go b/mtermvectors.go index 03f7d2881..5f1ec8007 100644 --- a/mtermvectors.go +++ b/mtermvectors.go @@ -18,7 +18,7 @@ import ( // fields of a particular document. The document could be stored in the // index or artificially provided by the user. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/docs-multi-termvectors.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/docs-multi-termvectors.html // for documentation. type MultiTermvectorService struct { client *Client diff --git a/nodes_info.go b/nodes_info.go index 8d26d27dc..6f6887a2a 100644 --- a/nodes_info.go +++ b/nodes_info.go @@ -16,7 +16,7 @@ import ( // NodesInfoService allows to retrieve one or more or all of the // cluster nodes information. -// It is documented at https://www.elastic.co/guide/en/elasticsearch/reference/7.x/cluster-nodes-info.html. +// It is documented at https://www.elastic.co/guide/en/elasticsearch/reference/7.0/cluster-nodes-info.html. type NodesInfoService struct { client *Client pretty bool diff --git a/nodes_stats.go b/nodes_stats.go index 6d28f4917..15513e9b7 100644 --- a/nodes_stats.go +++ b/nodes_stats.go @@ -15,7 +15,7 @@ import ( ) // NodesStatsService returns node statistics. -// See http://www.elastic.co/guide/en/elasticsearch/reference/7.x/cluster-nodes-stats.html +// See http://www.elastic.co/guide/en/elasticsearch/reference/7.0/cluster-nodes-stats.html // for details. type NodesStatsService struct { client *Client diff --git a/recipes/bulk_insert/bulk_insert.go b/recipes/bulk_insert/bulk_insert.go index bcfdefda9..b8dfbf03c 100644 --- a/recipes/bulk_insert/bulk_insert.go +++ b/recipes/bulk_insert/bulk_insert.go @@ -11,7 +11,7 @@ // The number of documents after which a commit happens can be specified // via the "bulk-size" flag. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/docs-bulk.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/docs-bulk.html // for details on the Bulk API in Elasticsearch. // // Example diff --git a/recipes/sliced_scroll/sliced_scroll.go b/recipes/sliced_scroll/sliced_scroll.go index b5f92e7e9..22a0fa4be 100644 --- a/recipes/sliced_scroll/sliced_scroll.go +++ b/recipes/sliced_scroll/sliced_scroll.go @@ -13,7 +13,7 @@ // The speedup of sliced scrolling can be significant but is very // dependent on the specific use case. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-request-scroll.html#sliced-scroll +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-request-scroll.html#sliced-scroll // for details on sliced scrolling in Elasticsearch. // // Example diff --git a/recipes/suggesters/completion/main.go b/recipes/suggesters/completion/main.go index 4c25f368d..ec7794ccf 100644 --- a/recipes/suggesters/completion/main.go +++ b/recipes/suggesters/completion/main.go @@ -10,7 +10,7 @@ // ./completion -url=http://127.0.0.1:9200 -index=cities // // For more details and experimentation, take a look at the official -// documentation at https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-suggesters-completion.html. +// documentation at https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-suggesters-completion.html. package main import ( diff --git a/reindex.go b/reindex.go index 150318324..6f650a355 100644 --- a/reindex.go +++ b/reindex.go @@ -13,7 +13,7 @@ import ( ) // ReindexService is a method to copy documents from one index to another. -// It is documented at https://www.elastic.co/guide/en/elasticsearch/reference/7.x/docs-reindex.html. +// It is documented at https://www.elastic.co/guide/en/elasticsearch/reference/7.0/docs-reindex.html. type ReindexService struct { client *Client pretty bool @@ -58,7 +58,7 @@ func (s *ReindexService) RequestsPerSecond(requestsPerSecond int) *ReindexServic // Slices specifies the number of slices this task should be divided into. Defaults to 1. // It used to be a number, but can be set to "auto" as of 6.7. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/docs-reindex.html#docs-reindex-slice +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/docs-reindex.html#docs-reindex-slice // for details. func (s *ReindexService) Slices(slices interface{}) *ReindexService { s.slices = slices @@ -68,7 +68,7 @@ func (s *ReindexService) Slices(slices interface{}) *ReindexService { // Refresh indicates whether Elasticsearch should refresh the effected indexes // immediately. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/docs-refresh.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/docs-refresh.html // for details. func (s *ReindexService) Refresh(refresh string) *ReindexService { s.refresh = refresh @@ -601,7 +601,7 @@ func (ri *ReindexRemoteInfo) Source() (interface{}, error) { // ReindexDestination is the destination of a Reindex API call. // It is basically the meta data of a BulkIndexRequest. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/docs-reindex.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/docs-reindex.html // fsourcer details. type ReindexDestination struct { index string @@ -660,7 +660,7 @@ func (r *ReindexDestination) Parent(parent string) *ReindexDestination { // OpType specifies if this request should follow create-only or upsert // behavior. This follows the OpType of the standard document index API. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/docs-index_.html#operation-type +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/docs-index_.html#operation-type // for details. func (r *ReindexDestination) OpType(opType string) *ReindexDestination { r.opType = opType diff --git a/script.go b/script.go index 4306d0127..3e85b963e 100644 --- a/script.go +++ b/script.go @@ -14,7 +14,7 @@ import ( // Script holds all the parameters necessary to compile or find in cache // and then execute a script. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/modules-scripting.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/modules-scripting.html // for details of scripting. type Script struct { script string @@ -60,7 +60,7 @@ func (s *Script) Type(typ string) *Script { // Lang sets the language of the script. The default scripting language // is Painless ("painless"). -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/modules-scripting.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/modules-scripting.html // for details. func (s *Script) Lang(lang string) *Script { s.lang = lang diff --git a/script_delete.go b/script_delete.go index f5aac826c..9dce03500 100644 --- a/script_delete.go +++ b/script_delete.go @@ -14,7 +14,7 @@ import ( // DeleteScriptService removes a stored script in Elasticsearch. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/modules-scripting.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/modules-scripting.html // for details. type DeleteScriptService struct { client *Client diff --git a/script_get.go b/script_get.go index 6794225a2..1c3b09d86 100644 --- a/script_get.go +++ b/script_get.go @@ -15,7 +15,7 @@ import ( // GetScriptService reads a stored script in Elasticsearch. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/modules-scripting.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/modules-scripting.html // for details. type GetScriptService struct { client *Client diff --git a/script_put.go b/script_put.go index 2a554b2aa..30a99660d 100644 --- a/script_put.go +++ b/script_put.go @@ -14,7 +14,7 @@ import ( // PutScriptService adds or updates a stored script in Elasticsearch. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/modules-scripting.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/modules-scripting.html // for details. type PutScriptService struct { client *Client diff --git a/scroll.go b/scroll.go index bf8f97ff1..68556cc11 100644 --- a/scroll.go +++ b/scroll.go @@ -138,7 +138,7 @@ func (s *ScrollService) Query(query Query) *ScrollService { // PostFilter is executed as the last filter. It only affects the // search hits but not facets. See -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-request-post-filter.html +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-request-post-filter.html // for details. func (s *ScrollService) PostFilter(postFilter Query) *ScrollService { s.ss = s.ss.PostFilter(postFilter) @@ -147,7 +147,7 @@ func (s *ScrollService) PostFilter(postFilter Query) *ScrollService { // Slice allows slicing the scroll request into several batches. // This is supported in Elasticsearch 5.0 or later. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-request-scroll.html#sliced-scroll +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-request-scroll.html#sliced-scroll // for details. func (s *ScrollService) Slice(sliceQuery Query) *ScrollService { s.ss = s.ss.Slice(sliceQuery) @@ -168,7 +168,7 @@ func (s *ScrollService) FetchSourceContext(fetchSourceContext *FetchSourceContex } // Version can be set to true to return a version for each search hit. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-request-version.html. +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-request-version.html. func (s *ScrollService) Version(version bool) *ScrollService { s.ss = s.ss.Version(version) return s @@ -249,7 +249,7 @@ func (s *ScrollService) MaxResponseSize(maxResponseSize int64) *ScrollService { // FilterPath allows reducing the response, a mechanism known as // response filtering and described here: -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/common-options.html#common-options-response-filtering. +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/common-options.html#common-options-response-filtering. func (s *ScrollService) FilterPath(filterPath ...string) *ScrollService { s.filterPath = append(s.filterPath, filterPath...) return s diff --git a/search.go b/search.go index 44a2d91de..21c2d2efc 100644 --- a/search.go +++ b/search.go @@ -61,7 +61,7 @@ func (s *SearchService) Source(source interface{}) *SearchService { // FilterPath allows reducing the response, a mechanism known as // response filtering and described here: -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/common-options.html#common-options-response-filtering. +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/common-options.html#common-options-response-filtering. func (s *SearchService) FilterPath(filterPath ...string) *SearchService { s.filterPath = append(s.filterPath, filterPath...) return s @@ -123,7 +123,7 @@ func (s *SearchService) TerminateAfter(terminateAfter int) *SearchService { // SearchType sets the search operation type. Valid values are: // "dfs_query_then_fetch" and "query_then_fetch". -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-request-search-type.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-request-search-type.html // for details. func (s *SearchService) SearchType(searchType string) *SearchService { s.searchType = searchType @@ -316,7 +316,7 @@ func (s *SearchService) TrackScores(trackScores bool) *SearchService { // TrackTotalHits controls how the total number of hits should be tracked. // Defaults to 10000 which will count the total hit accurately up to 10,000 hits. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/index-modules-index-sorting.html#early-terminate +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/index-modules-index-sorting.html#early-terminate // for details. func (s *SearchService) TrackTotalHits(trackTotalHits interface{}) *SearchService { s.searchSource = s.searchSource.TrackTotalHits(trackTotalHits) @@ -326,7 +326,7 @@ func (s *SearchService) TrackTotalHits(trackTotalHits interface{}) *SearchServic // SearchAfter allows a different form of pagination by using a live cursor, // using the results of the previous page to help the retrieval of the next. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-request-search-after.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-request-search-after.html func (s *SearchService) SearchAfter(sortValues ...interface{}) *SearchService { s.searchSource = s.searchSource.SearchAfter(sortValues...) return s @@ -562,7 +562,7 @@ type SearchHitInnerHits struct { } // SearchExplanation explains how the score for a hit was computed. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-request-explain.html. +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-request-explain.html. type SearchExplanation struct { Value float64 `json:"value"` // e.g. 1.0 Description string `json:"description"` // e.g. "boost" or "ConstantScore(*:*), product of:" @@ -572,11 +572,11 @@ type SearchExplanation struct { // Suggest // SearchSuggest is a map of suggestions. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-suggesters.html. +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-suggesters.html. type SearchSuggest map[string][]SearchSuggestion // SearchSuggestion is a single search suggestion. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-suggesters.html. +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-suggesters.html. type SearchSuggestion struct { Text string `json:"text"` Offset int `json:"offset"` @@ -585,7 +585,7 @@ type SearchSuggestion struct { } // SearchSuggestionOption is an option of a SearchSuggestion. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-suggesters.html. +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-suggesters.html. type SearchSuggestionOption struct { Text string `json:"text"` Index string `json:"_index"` @@ -649,6 +649,6 @@ type ProfileResult struct { // Highlighting // SearchHitHighlight is the highlight information of a search hit. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-request-highlighting.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-request-highlighting.html // for a general discussion of highlighting. type SearchHitHighlight map[string][]string diff --git a/search_aggs.go b/search_aggs.go index 6a564cb21..c699477b7 100644 --- a/search_aggs.go +++ b/search_aggs.go @@ -13,7 +13,7 @@ import ( // analytic information over a set of documents. It is // (in many senses) the follow-up of facets in Elasticsearch. // For more details about aggregations, visit: -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations.html +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations.html type Aggregation interface { // Source returns a JSON-serializable aggregation that is a fragment // of the request sent to Elasticsearch. @@ -24,7 +24,7 @@ type Aggregation interface { type Aggregations map[string]*json.RawMessage // Min returns min aggregation results. -// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-metrics-min-aggregation.html +// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-metrics-min-aggregation.html func (a Aggregations) Min(name string) (*AggregationValueMetric, bool) { if raw, found := a[name]; found { agg := new(AggregationValueMetric) @@ -39,7 +39,7 @@ func (a Aggregations) Min(name string) (*AggregationValueMetric, bool) { } // Max returns max aggregation results. -// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-metrics-max-aggregation.html +// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-metrics-max-aggregation.html func (a Aggregations) Max(name string) (*AggregationValueMetric, bool) { if raw, found := a[name]; found { agg := new(AggregationValueMetric) @@ -54,7 +54,7 @@ func (a Aggregations) Max(name string) (*AggregationValueMetric, bool) { } // Sum returns sum aggregation results. -// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-metrics-sum-aggregation.html +// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-metrics-sum-aggregation.html func (a Aggregations) Sum(name string) (*AggregationValueMetric, bool) { if raw, found := a[name]; found { agg := new(AggregationValueMetric) @@ -69,7 +69,7 @@ func (a Aggregations) Sum(name string) (*AggregationValueMetric, bool) { } // Avg returns average aggregation results. -// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-metrics-avg-aggregation.html +// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-metrics-avg-aggregation.html func (a Aggregations) Avg(name string) (*AggregationValueMetric, bool) { if raw, found := a[name]; found { agg := new(AggregationValueMetric) @@ -84,7 +84,7 @@ func (a Aggregations) Avg(name string) (*AggregationValueMetric, bool) { } // WeightedAvg computes the weighted average of numeric values that are extracted from the aggregated documents. -// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-metrics-weight-avg-aggregation.html +// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-metrics-weight-avg-aggregation.html func (a Aggregations) WeightedAvg(name string) (*AggregationValueMetric, bool) { if raw, found := a[name]; found { agg := new(AggregationValueMetric) @@ -99,7 +99,7 @@ func (a Aggregations) WeightedAvg(name string) (*AggregationValueMetric, bool) { } // ValueCount returns value-count aggregation results. -// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-metrics-valuecount-aggregation.html +// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-metrics-valuecount-aggregation.html func (a Aggregations) ValueCount(name string) (*AggregationValueMetric, bool) { if raw, found := a[name]; found { agg := new(AggregationValueMetric) @@ -114,7 +114,7 @@ func (a Aggregations) ValueCount(name string) (*AggregationValueMetric, bool) { } // Cardinality returns cardinality aggregation results. -// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-metrics-cardinality-aggregation.html +// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-metrics-cardinality-aggregation.html func (a Aggregations) Cardinality(name string) (*AggregationValueMetric, bool) { if raw, found := a[name]; found { agg := new(AggregationValueMetric) @@ -129,7 +129,7 @@ func (a Aggregations) Cardinality(name string) (*AggregationValueMetric, bool) { } // Stats returns stats aggregation results. -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-metrics-stats-aggregation.html +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-metrics-stats-aggregation.html func (a Aggregations) Stats(name string) (*AggregationStatsMetric, bool) { if raw, found := a[name]; found { agg := new(AggregationStatsMetric) @@ -144,7 +144,7 @@ func (a Aggregations) Stats(name string) (*AggregationStatsMetric, bool) { } // ExtendedStats returns extended stats aggregation results. -// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-metrics-extendedstats-aggregation.html +// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-metrics-extendedstats-aggregation.html func (a Aggregations) ExtendedStats(name string) (*AggregationExtendedStatsMetric, bool) { if raw, found := a[name]; found { agg := new(AggregationExtendedStatsMetric) @@ -159,7 +159,7 @@ func (a Aggregations) ExtendedStats(name string) (*AggregationExtendedStatsMetri } // MatrixStats returns matrix stats aggregation results. -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-matrix-stats-aggregation.html +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-matrix-stats-aggregation.html func (a Aggregations) MatrixStats(name string) (*AggregationMatrixStats, bool) { if raw, found := a[name]; found { agg := new(AggregationMatrixStats) @@ -174,7 +174,7 @@ func (a Aggregations) MatrixStats(name string) (*AggregationMatrixStats, bool) { } // Percentiles returns percentiles results. -// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-metrics-percentile-aggregation.html +// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-metrics-percentile-aggregation.html func (a Aggregations) Percentiles(name string) (*AggregationPercentilesMetric, bool) { if raw, found := a[name]; found { agg := new(AggregationPercentilesMetric) @@ -189,7 +189,7 @@ func (a Aggregations) Percentiles(name string) (*AggregationPercentilesMetric, b } // PercentileRanks returns percentile ranks results. -// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-metrics-percentile-rank-aggregation.html +// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-metrics-percentile-rank-aggregation.html func (a Aggregations) PercentileRanks(name string) (*AggregationPercentilesMetric, bool) { if raw, found := a[name]; found { agg := new(AggregationPercentilesMetric) @@ -204,7 +204,7 @@ func (a Aggregations) PercentileRanks(name string) (*AggregationPercentilesMetri } // TopHits returns top-hits aggregation results. -// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-metrics-top-hits-aggregation.html +// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-metrics-top-hits-aggregation.html func (a Aggregations) TopHits(name string) (*AggregationTopHitsMetric, bool) { if raw, found := a[name]; found { agg := new(AggregationTopHitsMetric) @@ -219,7 +219,7 @@ func (a Aggregations) TopHits(name string) (*AggregationTopHitsMetric, bool) { } // Global returns global results. -// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-bucket-global-aggregation.html +// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-bucket-global-aggregation.html func (a Aggregations) Global(name string) (*AggregationSingleBucket, bool) { if raw, found := a[name]; found { agg := new(AggregationSingleBucket) @@ -234,7 +234,7 @@ func (a Aggregations) Global(name string) (*AggregationSingleBucket, bool) { } // Filter returns filter results. -// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-bucket-filter-aggregation.html +// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-bucket-filter-aggregation.html func (a Aggregations) Filter(name string) (*AggregationSingleBucket, bool) { if raw, found := a[name]; found { agg := new(AggregationSingleBucket) @@ -249,7 +249,7 @@ func (a Aggregations) Filter(name string) (*AggregationSingleBucket, bool) { } // Filters returns filters results. -// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-bucket-filters-aggregation.html +// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-bucket-filters-aggregation.html func (a Aggregations) Filters(name string) (*AggregationBucketFilters, bool) { if raw, found := a[name]; found { agg := new(AggregationBucketFilters) @@ -264,7 +264,7 @@ func (a Aggregations) Filters(name string) (*AggregationBucketFilters, bool) { } // AdjacencyMatrix returning a form of adjacency matrix. -// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-bucket-adjacency-matrix-aggregation.html +// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-bucket-adjacency-matrix-aggregation.html func (a Aggregations) AdjacencyMatrix(name string) (*AggregationBucketAdjacencyMatrix, bool) { if raw, found := a[name]; found { agg := new(AggregationBucketAdjacencyMatrix) @@ -279,7 +279,7 @@ func (a Aggregations) AdjacencyMatrix(name string) (*AggregationBucketAdjacencyM } // Missing returns missing results. -// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-bucket-missing-aggregation.html +// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-bucket-missing-aggregation.html func (a Aggregations) Missing(name string) (*AggregationSingleBucket, bool) { if raw, found := a[name]; found { agg := new(AggregationSingleBucket) @@ -294,7 +294,7 @@ func (a Aggregations) Missing(name string) (*AggregationSingleBucket, bool) { } // Nested returns nested results. -// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-bucket-nested-aggregation.html +// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-bucket-nested-aggregation.html func (a Aggregations) Nested(name string) (*AggregationSingleBucket, bool) { if raw, found := a[name]; found { agg := new(AggregationSingleBucket) @@ -309,7 +309,7 @@ func (a Aggregations) Nested(name string) (*AggregationSingleBucket, bool) { } // ReverseNested returns reverse-nested results. -// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-bucket-reverse-nested-aggregation.html +// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-bucket-reverse-nested-aggregation.html func (a Aggregations) ReverseNested(name string) (*AggregationSingleBucket, bool) { if raw, found := a[name]; found { agg := new(AggregationSingleBucket) @@ -324,7 +324,7 @@ func (a Aggregations) ReverseNested(name string) (*AggregationSingleBucket, bool } // Children returns children results. -// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-bucket-children-aggregation.html +// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-bucket-children-aggregation.html func (a Aggregations) Children(name string) (*AggregationSingleBucket, bool) { if raw, found := a[name]; found { agg := new(AggregationSingleBucket) @@ -339,7 +339,7 @@ func (a Aggregations) Children(name string) (*AggregationSingleBucket, bool) { } // Terms returns terms aggregation results. -// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-bucket-terms-aggregation.html +// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-bucket-terms-aggregation.html func (a Aggregations) Terms(name string) (*AggregationBucketKeyItems, bool) { if raw, found := a[name]; found { agg := new(AggregationBucketKeyItems) @@ -354,7 +354,7 @@ func (a Aggregations) Terms(name string) (*AggregationBucketKeyItems, bool) { } // SignificantTerms returns significant terms aggregation results. -// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-bucket-significantterms-aggregation.html +// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-bucket-significantterms-aggregation.html func (a Aggregations) SignificantTerms(name string) (*AggregationBucketSignificantTerms, bool) { if raw, found := a[name]; found { agg := new(AggregationBucketSignificantTerms) @@ -369,7 +369,7 @@ func (a Aggregations) SignificantTerms(name string) (*AggregationBucketSignifica } // Sampler returns sampler aggregation results. -// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-bucket-sampler-aggregation.html +// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-bucket-sampler-aggregation.html func (a Aggregations) Sampler(name string) (*AggregationSingleBucket, bool) { if raw, found := a[name]; found { agg := new(AggregationSingleBucket) @@ -384,7 +384,7 @@ func (a Aggregations) Sampler(name string) (*AggregationSingleBucket, bool) { } // DiversifiedSampler returns diversified_sampler aggregation results. -// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-bucket-diversified-sampler-aggregation.html +// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-bucket-diversified-sampler-aggregation.html func (a Aggregations) DiversifiedSampler(name string) (*AggregationSingleBucket, bool) { if raw, found := a[name]; found { agg := new(AggregationSingleBucket) @@ -399,7 +399,7 @@ func (a Aggregations) DiversifiedSampler(name string) (*AggregationSingleBucket, } // Range returns range aggregation results. -// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-bucket-range-aggregation.html +// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-bucket-range-aggregation.html func (a Aggregations) Range(name string) (*AggregationBucketRangeItems, bool) { if raw, found := a[name]; found { agg := new(AggregationBucketRangeItems) @@ -414,7 +414,7 @@ func (a Aggregations) Range(name string) (*AggregationBucketRangeItems, bool) { } // KeyedRange returns keyed range aggregation results. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-bucket-range-aggregation.html. +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-bucket-range-aggregation.html. func (a Aggregations) KeyedRange(name string) (*AggregationBucketKeyedRangeItems, bool) { if raw, found := a[name]; found { agg := new(AggregationBucketKeyedRangeItems) @@ -429,7 +429,7 @@ func (a Aggregations) KeyedRange(name string) (*AggregationBucketKeyedRangeItems } // DateRange returns date range aggregation results. -// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-bucket-daterange-aggregation.html +// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-bucket-daterange-aggregation.html func (a Aggregations) DateRange(name string) (*AggregationBucketRangeItems, bool) { if raw, found := a[name]; found { agg := new(AggregationBucketRangeItems) @@ -444,7 +444,7 @@ func (a Aggregations) DateRange(name string) (*AggregationBucketRangeItems, bool } // IPRange returns IP range aggregation results. -// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-bucket-iprange-aggregation.html +// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-bucket-iprange-aggregation.html func (a Aggregations) IPRange(name string) (*AggregationBucketRangeItems, bool) { if raw, found := a[name]; found { agg := new(AggregationBucketRangeItems) @@ -459,7 +459,7 @@ func (a Aggregations) IPRange(name string) (*AggregationBucketRangeItems, bool) } // Histogram returns histogram aggregation results. -// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-bucket-histogram-aggregation.html +// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-bucket-histogram-aggregation.html func (a Aggregations) Histogram(name string) (*AggregationBucketHistogramItems, bool) { if raw, found := a[name]; found { agg := new(AggregationBucketHistogramItems) @@ -474,7 +474,7 @@ func (a Aggregations) Histogram(name string) (*AggregationBucketHistogramItems, } // DateHistogram returns date histogram aggregation results. -// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-bucket-datehistogram-aggregation.html +// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-bucket-datehistogram-aggregation.html func (a Aggregations) DateHistogram(name string) (*AggregationBucketHistogramItems, bool) { if raw, found := a[name]; found { agg := new(AggregationBucketHistogramItems) @@ -490,7 +490,7 @@ func (a Aggregations) DateHistogram(name string) (*AggregationBucketHistogramIte // KeyedDateHistogram returns date histogram aggregation results for keyed responses. // -// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-bucket-datehistogram-aggregation.html#_keyed_response_3 +// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-bucket-datehistogram-aggregation.html#_keyed_response_3 func (a Aggregations) KeyedDateHistogram(name string) (*AggregationBucketKeyedHistogramItems, bool) { if raw, found := a[name]; found { agg := new(AggregationBucketKeyedHistogramItems) @@ -505,7 +505,7 @@ func (a Aggregations) KeyedDateHistogram(name string) (*AggregationBucketKeyedHi } // GeoBounds returns geo-bounds aggregation results. -// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-metrics-geobounds-aggregation.html +// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-metrics-geobounds-aggregation.html func (a Aggregations) GeoBounds(name string) (*AggregationGeoBoundsMetric, bool) { if raw, found := a[name]; found { agg := new(AggregationGeoBoundsMetric) @@ -520,7 +520,7 @@ func (a Aggregations) GeoBounds(name string) (*AggregationGeoBoundsMetric, bool) } // GeoHash returns geo-hash aggregation results. -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-bucket-geohashgrid-aggregation.html +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-bucket-geohashgrid-aggregation.html func (a Aggregations) GeoHash(name string) (*AggregationBucketKeyItems, bool) { if raw, found := a[name]; found { agg := new(AggregationBucketKeyItems) @@ -535,7 +535,7 @@ func (a Aggregations) GeoHash(name string) (*AggregationBucketKeyItems, bool) { } // GeoCentroid returns geo-centroid aggregation results. -// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-metrics-geocentroid-aggregation.html +// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-metrics-geocentroid-aggregation.html func (a Aggregations) GeoCentroid(name string) (*AggregationGeoCentroidMetric, bool) { if raw, found := a[name]; found { agg := new(AggregationGeoCentroidMetric) @@ -550,7 +550,7 @@ func (a Aggregations) GeoCentroid(name string) (*AggregationGeoCentroidMetric, b } // GeoDistance returns geo distance aggregation results. -// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-bucket-geodistance-aggregation.html +// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-bucket-geodistance-aggregation.html func (a Aggregations) GeoDistance(name string) (*AggregationBucketRangeItems, bool) { if raw, found := a[name]; found { agg := new(AggregationBucketRangeItems) @@ -565,7 +565,7 @@ func (a Aggregations) GeoDistance(name string) (*AggregationBucketRangeItems, bo } // AvgBucket returns average bucket pipeline aggregation results. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-pipeline-avg-bucket-aggregation.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-pipeline-avg-bucket-aggregation.html func (a Aggregations) AvgBucket(name string) (*AggregationPipelineSimpleValue, bool) { if raw, found := a[name]; found { agg := new(AggregationPipelineSimpleValue) @@ -580,7 +580,7 @@ func (a Aggregations) AvgBucket(name string) (*AggregationPipelineSimpleValue, b } // SumBucket returns sum bucket pipeline aggregation results. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-pipeline-sum-bucket-aggregation.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-pipeline-sum-bucket-aggregation.html func (a Aggregations) SumBucket(name string) (*AggregationPipelineSimpleValue, bool) { if raw, found := a[name]; found { agg := new(AggregationPipelineSimpleValue) @@ -595,7 +595,7 @@ func (a Aggregations) SumBucket(name string) (*AggregationPipelineSimpleValue, b } // StatsBucket returns stats bucket pipeline aggregation results. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-pipeline-stats-bucket-aggregation.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-pipeline-stats-bucket-aggregation.html func (a Aggregations) StatsBucket(name string) (*AggregationPipelineStatsMetric, bool) { if raw, found := a[name]; found { agg := new(AggregationPipelineStatsMetric) @@ -610,7 +610,7 @@ func (a Aggregations) StatsBucket(name string) (*AggregationPipelineStatsMetric, } // PercentilesBucket returns stats bucket pipeline aggregation results. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-pipeline-percentiles-bucket-aggregation.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-pipeline-percentiles-bucket-aggregation.html func (a Aggregations) PercentilesBucket(name string) (*AggregationPipelinePercentilesMetric, bool) { if raw, found := a[name]; found { agg := new(AggregationPipelinePercentilesMetric) @@ -625,7 +625,7 @@ func (a Aggregations) PercentilesBucket(name string) (*AggregationPipelinePercen } // MaxBucket returns maximum bucket pipeline aggregation results. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-pipeline-max-bucket-aggregation.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-pipeline-max-bucket-aggregation.html func (a Aggregations) MaxBucket(name string) (*AggregationPipelineBucketMetricValue, bool) { if raw, found := a[name]; found { agg := new(AggregationPipelineBucketMetricValue) @@ -640,7 +640,7 @@ func (a Aggregations) MaxBucket(name string) (*AggregationPipelineBucketMetricVa } // MinBucket returns minimum bucket pipeline aggregation results. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-pipeline-min-bucket-aggregation.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-pipeline-min-bucket-aggregation.html func (a Aggregations) MinBucket(name string) (*AggregationPipelineBucketMetricValue, bool) { if raw, found := a[name]; found { agg := new(AggregationPipelineBucketMetricValue) @@ -655,7 +655,7 @@ func (a Aggregations) MinBucket(name string) (*AggregationPipelineBucketMetricVa } // MovAvg returns moving average pipeline aggregation results. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-pipeline-movavg-aggregation.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-pipeline-movavg-aggregation.html // // Deprecated: The MovAvgAggregation has been deprecated in 6.4.0. Use the more generate MovFnAggregation instead. func (a Aggregations) MovAvg(name string) (*AggregationPipelineSimpleValue, bool) { @@ -672,7 +672,7 @@ func (a Aggregations) MovAvg(name string) (*AggregationPipelineSimpleValue, bool } // MovFn returns moving function pipeline aggregation results. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-pipeline-movfn-aggregation.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-pipeline-movfn-aggregation.html func (a Aggregations) MovFn(name string) (*AggregationPipelineSimpleValue, bool) { if raw, found := a[name]; found { agg := new(AggregationPipelineSimpleValue) @@ -687,7 +687,7 @@ func (a Aggregations) MovFn(name string) (*AggregationPipelineSimpleValue, bool) } // Derivative returns derivative pipeline aggregation results. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-pipeline-derivative-aggregation.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-pipeline-derivative-aggregation.html func (a Aggregations) Derivative(name string) (*AggregationPipelineDerivative, bool) { if raw, found := a[name]; found { agg := new(AggregationPipelineDerivative) @@ -702,7 +702,7 @@ func (a Aggregations) Derivative(name string) (*AggregationPipelineDerivative, b } // CumulativeSum returns a cumulative sum pipeline aggregation results. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-pipeline-cumulative-sum-aggregation.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-pipeline-cumulative-sum-aggregation.html func (a Aggregations) CumulativeSum(name string) (*AggregationPipelineSimpleValue, bool) { if raw, found := a[name]; found { agg := new(AggregationPipelineSimpleValue) @@ -717,7 +717,7 @@ func (a Aggregations) CumulativeSum(name string) (*AggregationPipelineSimpleValu } // BucketScript returns bucket script pipeline aggregation results. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-pipeline-bucket-script-aggregation.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-pipeline-bucket-script-aggregation.html func (a Aggregations) BucketScript(name string) (*AggregationPipelineSimpleValue, bool) { if raw, found := a[name]; found { agg := new(AggregationPipelineSimpleValue) @@ -732,7 +732,7 @@ func (a Aggregations) BucketScript(name string) (*AggregationPipelineSimpleValue } // SerialDiff returns serial differencing pipeline aggregation results. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-pipeline-serialdiff-aggregation.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-pipeline-serialdiff-aggregation.html func (a Aggregations) SerialDiff(name string) (*AggregationPipelineSimpleValue, bool) { if raw, found := a[name]; found { agg := new(AggregationPipelineSimpleValue) @@ -748,7 +748,7 @@ func (a Aggregations) SerialDiff(name string) (*AggregationPipelineSimpleValue, // Composite returns composite bucket aggregation results. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-bucket-composite-aggregation.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-bucket-composite-aggregation.html // for details. func (a Aggregations) Composite(name string) (*AggregationBucketCompositeItems, bool) { if raw, found := a[name]; found { diff --git a/search_aggs_bucket_adjacency_matrix.go b/search_aggs_bucket_adjacency_matrix.go index d5f5bbb70..7dff0e025 100644 --- a/search_aggs_bucket_adjacency_matrix.go +++ b/search_aggs_bucket_adjacency_matrix.go @@ -10,7 +10,7 @@ package elastic // response represents a non-empty cell in the matrix of intersecting filters. // // For details, see -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-bucket-adjacency-matrix-aggregation.html +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-bucket-adjacency-matrix-aggregation.html type AdjacencyMatrixAggregation struct { filters map[string]Query subAggregations map[string]Aggregation diff --git a/search_aggs_bucket_children.go b/search_aggs_bucket_children.go index 5958ea107..4078b1de0 100644 --- a/search_aggs_bucket_children.go +++ b/search_aggs_bucket_children.go @@ -7,7 +7,7 @@ package elastic // ChildrenAggregation is a special single bucket aggregation that enables // aggregating from buckets on parent document types to buckets on child documents. // It is available from 1.4.0.Beta1 upwards. -// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-bucket-children-aggregation.html +// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-bucket-children-aggregation.html type ChildrenAggregation struct { typ string subAggregations map[string]Aggregation diff --git a/search_aggs_bucket_composite.go b/search_aggs_bucket_composite.go index 613e5e7f9..717461c16 100644 --- a/search_aggs_bucket_composite.go +++ b/search_aggs_bucket_composite.go @@ -7,7 +7,7 @@ package elastic // CompositeAggregation is a multi-bucket values source based aggregation // that can be used to calculate unique composite values from source documents. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-bucket-composite-aggregation.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-bucket-composite-aggregation.html // for details. type CompositeAggregation struct { after map[string]interface{} @@ -129,7 +129,7 @@ func (a *CompositeAggregation) Source() (interface{}, error) { // need to implement. // // The different implementations are described in -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-bucket-composite-aggregation.html#_values_source_2. +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-bucket-composite-aggregation.html#_values_source_2. type CompositeAggregationValuesSource interface { Source() (interface{}, error) } @@ -139,7 +139,7 @@ type CompositeAggregationValuesSource interface { // CompositeAggregationTermsValuesSource is a source for the CompositeAggregation that handles terms // it works very similar to a terms aggregation with slightly different syntax // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-bucket-composite-aggregation.html#_terms +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-bucket-composite-aggregation.html#_terms // for details. type CompositeAggregationTermsValuesSource struct { name string @@ -264,7 +264,7 @@ func (a *CompositeAggregationTermsValuesSource) Source() (interface{}, error) { // CompositeAggregationHistogramValuesSource is a source for the CompositeAggregation that handles histograms // it works very similar to a terms histogram with slightly different syntax // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-bucket-composite-aggregation.html#_histogram +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-bucket-composite-aggregation.html#_histogram // for details. type CompositeAggregationHistogramValuesSource struct { name string @@ -400,7 +400,7 @@ func (a *CompositeAggregationHistogramValuesSource) Source() (interface{}, error // CompositeAggregationDateHistogramValuesSource is a source for the CompositeAggregation that handles date histograms // it works very similar to a date histogram aggregation with slightly different syntax // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-bucket-composite-aggregation.html#_date_histogram +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-bucket-composite-aggregation.html#_date_histogram // for details. type CompositeAggregationDateHistogramValuesSource struct { name string diff --git a/search_aggs_bucket_date_histogram.go b/search_aggs_bucket_date_histogram.go index 6afd0aa6a..efc79ff68 100644 --- a/search_aggs_bucket_date_histogram.go +++ b/search_aggs_bucket_date_histogram.go @@ -6,7 +6,7 @@ package elastic // DateHistogramAggregation is a multi-bucket aggregation similar to the // histogram except it can only be applied on date values. -// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-bucket-datehistogram-aggregation.html +// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-bucket-datehistogram-aggregation.html type DateHistogramAggregation struct { field string script *Script @@ -199,7 +199,7 @@ func (a *DateHistogramAggregation) ExtendedBoundsMax(max interface{}) *DateHisto // Keyed specifies whether to return the results with a keyed response (or not). // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-bucket-datehistogram-aggregation.html#_keyed_response_3. +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-bucket-datehistogram-aggregation.html#_keyed_response_3. func (a *DateHistogramAggregation) Keyed(keyed bool) *DateHistogramAggregation { a.keyed = &keyed return a diff --git a/search_aggs_bucket_date_range.go b/search_aggs_bucket_date_range.go index 9ece88566..a4becaae9 100644 --- a/search_aggs_bucket_date_range.go +++ b/search_aggs_bucket_date_range.go @@ -15,7 +15,7 @@ import ( // date format by which the from and to response fields will be returned. // Note that this aggregration includes the from value and excludes the to // value for each range. -// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-bucket-daterange-aggregation.html +// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-bucket-daterange-aggregation.html type DateRangeAggregation struct { field string script *Script diff --git a/search_aggs_bucket_diversified_sampler.go b/search_aggs_bucket_diversified_sampler.go index f0ddfb643..6d3a44829 100644 --- a/search_aggs_bucket_diversified_sampler.go +++ b/search_aggs_bucket_diversified_sampler.go @@ -8,7 +8,7 @@ package elastic // sub aggregations’ processing to a sample of the top-scoring documents. The diversified_sampler aggregation adds // the ability to limit the number of matches that share a common value such as an "author". // -// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-bucket-diversified-sampler-aggregation.html +// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-bucket-diversified-sampler-aggregation.html type DiversifiedSamplerAggregation struct { subAggregations map[string]Aggregation meta map[string]interface{} diff --git a/search_aggs_bucket_filter.go b/search_aggs_bucket_filter.go index ecaee8170..c002c8133 100644 --- a/search_aggs_bucket_filter.go +++ b/search_aggs_bucket_filter.go @@ -8,7 +8,7 @@ package elastic // in the current document set context that match a specified filter. // Often this will be used to narrow down the current aggregation context // to a specific set of documents. -// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-bucket-filter-aggregation.html +// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-bucket-filter-aggregation.html type FilterAggregation struct { filter Query subAggregations map[string]Aggregation diff --git a/search_aggs_bucket_filters.go b/search_aggs_bucket_filters.go index 1623e90be..d2ea5eaf9 100644 --- a/search_aggs_bucket_filters.go +++ b/search_aggs_bucket_filters.go @@ -15,7 +15,7 @@ import "errors" // use both named and unnamed filters. // // For details, see -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-bucket-filters-aggregation.html +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-bucket-filters-aggregation.html type FiltersAggregation struct { unnamedFilters []Query namedFilters map[string]Query diff --git a/search_aggs_bucket_geo_distance.go b/search_aggs_bucket_geo_distance.go index 6786bdd5f..ee8dd0cb4 100644 --- a/search_aggs_bucket_geo_distance.go +++ b/search_aggs_bucket_geo_distance.go @@ -11,7 +11,7 @@ package elastic // the origin point and determines the buckets it belongs to based on // the ranges (a document belongs to a bucket if the distance between the // document and the origin falls within the distance range of the bucket). -// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-bucket-geodistance-aggregation.html +// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-bucket-geodistance-aggregation.html type GeoDistanceAggregation struct { field string unit string diff --git a/search_aggs_bucket_geohash_grid.go b/search_aggs_bucket_geohash_grid.go index 2f78bfba9..1a56b5752 100644 --- a/search_aggs_bucket_geohash_grid.go +++ b/search_aggs_bucket_geohash_grid.go @@ -23,8 +23,8 @@ func (a *GeoHashGridAggregation) Field(field string) *GeoHashGridAggregation { } // Precision accepts the level as int value between 1 and 12 or Distance Units like "2km", "5mi" as described at -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/common-options.html#distance-units and -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-bucket-geohashgrid-aggregation.html +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/common-options.html#distance-units and +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-bucket-geohashgrid-aggregation.html func (a *GeoHashGridAggregation) Precision(precision interface{}) *GeoHashGridAggregation { a.precision = precision return a diff --git a/search_aggs_bucket_global.go b/search_aggs_bucket_global.go index 6345745e0..2e07f5d55 100644 --- a/search_aggs_bucket_global.go +++ b/search_aggs_bucket_global.go @@ -8,7 +8,7 @@ package elastic // the search execution context. This context is defined by the indices // and the document types you’re searching on, but is not influenced // by the search query itself. -// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-bucket-global-aggregation.html +// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-bucket-global-aggregation.html type GlobalAggregation struct { subAggregations map[string]Aggregation meta map[string]interface{} diff --git a/search_aggs_bucket_histogram.go b/search_aggs_bucket_histogram.go index 835da6b69..69021e6f8 100644 --- a/search_aggs_bucket_histogram.go +++ b/search_aggs_bucket_histogram.go @@ -8,7 +8,7 @@ package elastic // that can be applied on numeric values extracted from the documents. // It dynamically builds fixed size (a.k.a. interval) buckets over the // values. -// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-bucket-histogram-aggregation.html +// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-bucket-histogram-aggregation.html type HistogramAggregation struct { field string script *Script diff --git a/search_aggs_bucket_ip_range.go b/search_aggs_bucket_ip_range.go index 0a6304ff7..76ebe0d40 100644 --- a/search_aggs_bucket_ip_range.go +++ b/search_aggs_bucket_ip_range.go @@ -7,7 +7,7 @@ package elastic // IPRangeAggregation is a range aggregation that is dedicated for // IP addresses. // -// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-bucket-iprange-aggregation.html +// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-bucket-iprange-aggregation.html type IPRangeAggregation struct { field string subAggregations map[string]Aggregation diff --git a/search_aggs_bucket_missing.go b/search_aggs_bucket_missing.go index 206c0e112..68eba983b 100644 --- a/search_aggs_bucket_missing.go +++ b/search_aggs_bucket_missing.go @@ -11,7 +11,7 @@ package elastic // conjunction with other field data bucket aggregators (such as ranges) // to return information for all the documents that could not be placed // in any of the other buckets due to missing field data values. -// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-bucket-missing-aggregation.html +// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-bucket-missing-aggregation.html type MissingAggregation struct { field string subAggregations map[string]Aggregation diff --git a/search_aggs_bucket_nested.go b/search_aggs_bucket_nested.go index de044e227..5481f9214 100644 --- a/search_aggs_bucket_nested.go +++ b/search_aggs_bucket_nested.go @@ -6,7 +6,7 @@ package elastic // NestedAggregation is a special single bucket aggregation that enables // aggregating nested documents. -// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-bucket-nested-aggregation.html +// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-bucket-nested-aggregation.html type NestedAggregation struct { path string subAggregations map[string]Aggregation diff --git a/search_aggs_bucket_range.go b/search_aggs_bucket_range.go index 7ff105213..7e786d9fb 100644 --- a/search_aggs_bucket_range.go +++ b/search_aggs_bucket_range.go @@ -14,7 +14,7 @@ import ( // will be checked against each bucket range and "bucket" the // relevant/matching document. Note that this aggregration includes the // from value and excludes the to value for each range. -// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-bucket-range-aggregation.html +// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-bucket-range-aggregation.html type RangeAggregation struct { field string script *Script diff --git a/search_aggs_bucket_reverse_nested.go b/search_aggs_bucket_reverse_nested.go index 48c3f645c..8f454f8fc 100644 --- a/search_aggs_bucket_reverse_nested.go +++ b/search_aggs_bucket_reverse_nested.go @@ -11,7 +11,7 @@ package elastic // which allows nesting other aggregations that aren’t part of // the nested object in a nested aggregation. // -// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-bucket-reverse-nested-aggregation.html +// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-bucket-reverse-nested-aggregation.html type ReverseNestedAggregation struct { path string subAggregations map[string]Aggregation diff --git a/search_aggs_bucket_sampler.go b/search_aggs_bucket_sampler.go index 74941b249..d64e6b3dd 100644 --- a/search_aggs_bucket_sampler.go +++ b/search_aggs_bucket_sampler.go @@ -9,7 +9,7 @@ package elastic // Optionally, diversity settings can be used to limit the number of matches // that share a common value such as an "author". // -// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-bucket-sampler-aggregation.html +// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-bucket-sampler-aggregation.html type SamplerAggregation struct { subAggregations map[string]Aggregation meta map[string]interface{} diff --git a/search_aggs_bucket_significant_terms.go b/search_aggs_bucket_significant_terms.go index d9036a104..d1b58f259 100644 --- a/search_aggs_bucket_significant_terms.go +++ b/search_aggs_bucket_significant_terms.go @@ -6,7 +6,7 @@ package elastic // SignificantTermsAggregation is an aggregation that returns interesting // or unusual occurrences of terms in a set. -// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-bucket-significantterms-aggregation.html +// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-bucket-significantterms-aggregation.html type SignificantTermsAggregation struct { field string subAggregations map[string]Aggregation @@ -166,7 +166,7 @@ type SignificanceHeuristic interface { // ChiSquareSignificanceHeuristic implements Chi square as described // in "Information Retrieval", Manning et al., Chapter 13.5.2. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-bucket-significantterms-aggregation.html#_chi_square +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-bucket-significantterms-aggregation.html#_chi_square // for details. type ChiSquareSignificanceHeuristic struct { backgroundIsSuperset *bool @@ -216,7 +216,7 @@ func (sh *ChiSquareSignificanceHeuristic) Source() (interface{}, error) { // as described in "The Google Similarity Distance", Cilibrasi and Vitanyi, // 2007. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-bucket-significantterms-aggregation.html#_google_normalized_distance +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-bucket-significantterms-aggregation.html#_google_normalized_distance // for details. type GNDSignificanceHeuristic struct { backgroundIsSuperset *bool @@ -252,7 +252,7 @@ func (sh *GNDSignificanceHeuristic) Source() (interface{}, error) { // -- JLH Score -- // JLHScoreSignificanceHeuristic implements the JLH score as described in -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-bucket-significantterms-aggregation.html#_jlh_score. +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-bucket-significantterms-aggregation.html#_jlh_score. type JLHScoreSignificanceHeuristic struct{} // NewJLHScoreSignificanceHeuristic initializes a new JLHScoreSignificanceHeuristic. @@ -276,7 +276,7 @@ func (sh *JLHScoreSignificanceHeuristic) Source() (interface{}, error) { // MutualInformationSignificanceHeuristic implements Mutual information // as described in "Information Retrieval", Manning et al., Chapter 13.5.1. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-bucket-significantterms-aggregation.html#_mutual_information +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-bucket-significantterms-aggregation.html#_mutual_information // for details. type MutualInformationSignificanceHeuristic struct { backgroundIsSuperset *bool @@ -324,7 +324,7 @@ func (sh *MutualInformationSignificanceHeuristic) Source() (interface{}, error) // -- Percentage Score -- // PercentageScoreSignificanceHeuristic implements the algorithm described -// in https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-bucket-significantterms-aggregation.html#_percentage. +// in https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-bucket-significantterms-aggregation.html#_percentage. type PercentageScoreSignificanceHeuristic struct{} // NewPercentageScoreSignificanceHeuristic initializes a new instance of @@ -347,7 +347,7 @@ func (sh *PercentageScoreSignificanceHeuristic) Source() (interface{}, error) { // -- Script -- // ScriptSignificanceHeuristic implements a scripted significance heuristic. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-bucket-significantterms-aggregation.html#_scripted +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-bucket-significantterms-aggregation.html#_scripted // for details. type ScriptSignificanceHeuristic struct { script *Script @@ -368,7 +368,7 @@ func (sh *ScriptSignificanceHeuristic) Name() string { // parameters are available in the script: `_subset_freq`, `_superset_freq`, // `_subset_size`, and `_superset_size`. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-bucket-significantterms-aggregation.html#_scripted +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-bucket-significantterms-aggregation.html#_scripted // for details. func (sh *ScriptSignificanceHeuristic) Script(script *Script) *ScriptSignificanceHeuristic { sh.script = script diff --git a/search_aggs_bucket_significant_text.go b/search_aggs_bucket_significant_text.go index 125d8abfe..8dbaaeca6 100644 --- a/search_aggs_bucket_significant_text.go +++ b/search_aggs_bucket_significant_text.go @@ -6,7 +6,7 @@ package elastic // SignificantTextAggregation returns interesting or unusual occurrences // of free-text terms in a set. -// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-bucket-significanttext-aggregation.html +// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-bucket-significanttext-aggregation.html type SignificantTextAggregation struct { field string subAggregations map[string]Aggregation diff --git a/search_aggs_bucket_terms.go b/search_aggs_bucket_terms.go index 7f3400a0e..1af38a445 100644 --- a/search_aggs_bucket_terms.go +++ b/search_aggs_bucket_terms.go @@ -7,7 +7,7 @@ package elastic // TermsAggregation is a multi-bucket value source based aggregation // where buckets are dynamically built - one per unique value. // -// See: http://www.elasticsearch.org/guide/en/elasticsearch/reference/7.x/search-aggregations-bucket-terms-aggregation.html +// See: http://www.elasticsearch.org/guide/en/elasticsearch/reference/7.0/search-aggregations-bucket-terms-aggregation.html type TermsAggregation struct { field string script *Script diff --git a/search_aggs_matrix_stats.go b/search_aggs_matrix_stats.go index 1cc3e0df4..f0eb457ff 100644 --- a/search_aggs_matrix_stats.go +++ b/search_aggs_matrix_stats.go @@ -11,7 +11,7 @@ package elastic // // The stats that are returned consist of: min, max, sum, count and avg. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-metrics-stats-aggregation.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-metrics-stats-aggregation.html // for details. type MatrixStatsAggregation struct { fields []string diff --git a/search_aggs_metrics_avg.go b/search_aggs_metrics_avg.go index 2c965f113..7f58caf31 100644 --- a/search_aggs_metrics_avg.go +++ b/search_aggs_metrics_avg.go @@ -10,7 +10,7 @@ package elastic // specific numeric fields in the documents, or be generated by // a provided script. // -// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-metrics-avg-aggregation.html +// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-metrics-avg-aggregation.html type AvgAggregation struct { field string script *Script diff --git a/search_aggs_metrics_cardinality.go b/search_aggs_metrics_cardinality.go index 91ad82dda..f0599a68e 100644 --- a/search_aggs_metrics_cardinality.go +++ b/search_aggs_metrics_cardinality.go @@ -8,7 +8,7 @@ package elastic // calculates an approximate count of distinct values. // Values can be extracted either from specific fields in the document // or generated by a script. -// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-metrics-cardinality-aggregation.html +// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-metrics-cardinality-aggregation.html type CardinalityAggregation struct { field string script *Script diff --git a/search_aggs_metrics_extended_stats.go b/search_aggs_metrics_extended_stats.go index 624a4c7db..d3f412424 100644 --- a/search_aggs_metrics_extended_stats.go +++ b/search_aggs_metrics_extended_stats.go @@ -8,7 +8,7 @@ package elastic // computes stats over numeric values extracted from the aggregated documents. // These values can be extracted either from specific numeric fields // in the documents, or be generated by a provided script. -// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-metrics-extendedstats-aggregation.html +// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-metrics-extendedstats-aggregation.html type ExtendedStatsAggregation struct { field string script *Script diff --git a/search_aggs_metrics_geo_bounds.go b/search_aggs_metrics_geo_bounds.go index ce4b012b6..007e3029a 100644 --- a/search_aggs_metrics_geo_bounds.go +++ b/search_aggs_metrics_geo_bounds.go @@ -6,7 +6,7 @@ package elastic // GeoBoundsAggregation is a metric aggregation that computes the // bounding box containing all geo_point values for a field. -// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-metrics-geobounds-aggregation.html +// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-metrics-geobounds-aggregation.html type GeoBoundsAggregation struct { field string script *Script diff --git a/search_aggs_metrics_geo_centroid.go b/search_aggs_metrics_geo_centroid.go index 425eb3f6c..55b3f48a3 100644 --- a/search_aggs_metrics_geo_centroid.go +++ b/search_aggs_metrics_geo_centroid.go @@ -6,7 +6,7 @@ package elastic // GeoCentroidAggregation is a metric aggregation that computes the weighted centroid // from all coordinate values for a Geo-point datatype field. -// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-metrics-geocentroid-aggregation.html +// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-metrics-geocentroid-aggregation.html type GeoCentroidAggregation struct { field string script *Script diff --git a/search_aggs_metrics_max.go b/search_aggs_metrics_max.go index 6a8577730..9128a2522 100644 --- a/search_aggs_metrics_max.go +++ b/search_aggs_metrics_max.go @@ -9,7 +9,7 @@ package elastic // the aggregated documents. These values can be extracted either from // specific numeric fields in the documents, or be generated by // a provided script. -// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-metrics-max-aggregation.html +// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-metrics-max-aggregation.html type MaxAggregation struct { field string script *Script diff --git a/search_aggs_metrics_min.go b/search_aggs_metrics_min.go index 3179e93f0..b6e40f940 100644 --- a/search_aggs_metrics_min.go +++ b/search_aggs_metrics_min.go @@ -9,7 +9,7 @@ package elastic // aggregated documents. These values can be extracted either from // specific numeric fields in the documents, or be generated by a // provided script. -// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-metrics-min-aggregation.html +// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-metrics-min-aggregation.html type MinAggregation struct { field string script *Script diff --git a/search_aggs_metrics_percentile_ranks.go b/search_aggs_metrics_percentile_ranks.go index 4b047a3af..a62ff4c34 100644 --- a/search_aggs_metrics_percentile_ranks.go +++ b/search_aggs_metrics_percentile_ranks.go @@ -5,7 +5,7 @@ package elastic // PercentileRanksAggregation -// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-metrics-percentile-rank-aggregation.html +// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-metrics-percentile-rank-aggregation.html type PercentileRanksAggregation struct { field string script *Script diff --git a/search_aggs_metrics_percentiles.go b/search_aggs_metrics_percentiles.go index be07a7df3..1eb62de54 100644 --- a/search_aggs_metrics_percentiles.go +++ b/search_aggs_metrics_percentiles.go @@ -10,7 +10,7 @@ package elastic // be extracted either from specific numeric fields in the documents, // or be generated by a provided script. // -// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-metrics-percentile-aggregation.html +// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-metrics-percentile-aggregation.html type PercentilesAggregation struct { field string script *Script diff --git a/search_aggs_metrics_scripted_metric.go b/search_aggs_metrics_scripted_metric.go index 03481c834..0b26c9d6c 100644 --- a/search_aggs_metrics_scripted_metric.go +++ b/search_aggs_metrics_scripted_metric.go @@ -5,7 +5,7 @@ package elastic // ScriptedMetricAggregation is a a metric aggregation that executes using scripts to provide a metric output. // -// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-metrics-scripted-metric-aggregation.html +// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-metrics-scripted-metric-aggregation.html type ScriptedMetricAggregation struct { initScript *Script mapScript *Script diff --git a/search_aggs_metrics_stats.go b/search_aggs_metrics_stats.go index 9711d8500..6c00f6855 100644 --- a/search_aggs_metrics_stats.go +++ b/search_aggs_metrics_stats.go @@ -8,7 +8,7 @@ package elastic // over numeric values extracted from the aggregated documents. // These values can be extracted either from specific numeric fields // in the documents, or be generated by a provided script. -// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-metrics-stats-aggregation.html +// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-metrics-stats-aggregation.html type StatsAggregation struct { field string script *Script diff --git a/search_aggs_metrics_sum.go b/search_aggs_metrics_sum.go index 4061dd346..6de8f1d5b 100644 --- a/search_aggs_metrics_sum.go +++ b/search_aggs_metrics_sum.go @@ -8,7 +8,7 @@ package elastic // numeric values that are extracted from the aggregated documents. // These values can be extracted either from specific numeric fields // in the documents, or be generated by a provided script. -// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-metrics-sum-aggregation.html +// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-metrics-sum-aggregation.html type SumAggregation struct { field string script *Script diff --git a/search_aggs_metrics_top_hits.go b/search_aggs_metrics_top_hits.go index 54bf933ef..7321667d3 100644 --- a/search_aggs_metrics_top_hits.go +++ b/search_aggs_metrics_top_hits.go @@ -13,7 +13,7 @@ package elastic // a bucket aggregator. One or more bucket aggregators determines by // which properties a result set get sliced into. // -// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-metrics-top-hits-aggregation.html +// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-metrics-top-hits-aggregation.html type TopHitsAggregation struct { searchSource *SearchSource } diff --git a/search_aggs_metrics_value_count.go b/search_aggs_metrics_value_count.go index 81bcbee3b..b948dcccc 100644 --- a/search_aggs_metrics_value_count.go +++ b/search_aggs_metrics_value_count.go @@ -11,7 +11,7 @@ package elastic // used in conjunction with other single-value aggregations. // For example, when computing the avg one might be interested in the // number of values the average is computed over. -// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-metrics-valuecount-aggregation.html +// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-metrics-valuecount-aggregation.html type ValueCountAggregation struct { field string script *Script diff --git a/search_aggs_metrics_weighted_avg.go b/search_aggs_metrics_weighted_avg.go index b718d4d7a..cd7ad7ee7 100644 --- a/search_aggs_metrics_weighted_avg.go +++ b/search_aggs_metrics_weighted_avg.go @@ -9,7 +9,7 @@ package elastic // from the aggregated documents. These values can be extracted either // from specific numeric fields in the documents. // -// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-metrics-weight-avg-aggregation.html +// See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-metrics-weight-avg-aggregation.html type WeightedAvgAggregation struct { fields map[string]*MultiValuesSourceFieldConfig valueType string diff --git a/search_aggs_pipeline_avg_bucket.go b/search_aggs_pipeline_avg_bucket.go index 330d70c17..5c130d617 100644 --- a/search_aggs_pipeline_avg_bucket.go +++ b/search_aggs_pipeline_avg_bucket.go @@ -10,7 +10,7 @@ package elastic // be a multi-bucket aggregation. // // For more details, see -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-pipeline-avg-bucket-aggregation.html +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-pipeline-avg-bucket-aggregation.html type AvgBucketAggregation struct { format string gapPolicy string diff --git a/search_aggs_pipeline_bucket_script.go b/search_aggs_pipeline_bucket_script.go index d84b6b855..bc5229b9c 100644 --- a/search_aggs_pipeline_bucket_script.go +++ b/search_aggs_pipeline_bucket_script.go @@ -10,7 +10,7 @@ package elastic // numeric and the script must return a numeric value. // // For more details, see -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-pipeline-bucket-script-aggregation.html +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-pipeline-bucket-script-aggregation.html type BucketScriptAggregation struct { format string gapPolicy string diff --git a/search_aggs_pipeline_bucket_selector.go b/search_aggs_pipeline_bucket_selector.go index c266c5e09..1051f1ae3 100644 --- a/search_aggs_pipeline_bucket_selector.go +++ b/search_aggs_pipeline_bucket_selector.go @@ -12,7 +12,7 @@ package elastic // will be evaluated as false and all other values will evaluate to true. // // For more details, see -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-pipeline-bucket-selector-aggregation.html +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-pipeline-bucket-selector-aggregation.html type BucketSelectorAggregation struct { format string gapPolicy string diff --git a/search_aggs_pipeline_bucket_sort.go b/search_aggs_pipeline_bucket_sort.go index 2a2587a9f..3d060df2b 100644 --- a/search_aggs_pipeline_bucket_sort.go +++ b/search_aggs_pipeline_bucket_sort.go @@ -11,7 +11,7 @@ package elastic // parameters from and size may be set in order to truncate the result buckets. // // For more details, see -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-pipeline-bucket-sort-aggregation.html +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-pipeline-bucket-sort-aggregation.html type BucketSortAggregation struct { sorters []Sorter from int diff --git a/search_aggs_pipeline_cumulative_sum.go b/search_aggs_pipeline_cumulative_sum.go index 7d5985da1..1074d86b1 100644 --- a/search_aggs_pipeline_cumulative_sum.go +++ b/search_aggs_pipeline_cumulative_sum.go @@ -10,7 +10,7 @@ package elastic // histogram must have min_doc_count set to 0 (default for histogram aggregations). // // For more details, see -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-pipeline-cumulative-sum-aggregation.html +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-pipeline-cumulative-sum-aggregation.html type CumulativeSumAggregation struct { format string diff --git a/search_aggs_pipeline_derivative.go b/search_aggs_pipeline_derivative.go index 11a8c3c32..a22219cdf 100644 --- a/search_aggs_pipeline_derivative.go +++ b/search_aggs_pipeline_derivative.go @@ -10,7 +10,7 @@ package elastic // histogram must have min_doc_count set to 0 (default for histogram aggregations). // // For more details, see -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-pipeline-derivative-aggregation.html +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-pipeline-derivative-aggregation.html type DerivativeAggregation struct { format string gapPolicy string diff --git a/search_aggs_pipeline_extended_stats_bucket.go b/search_aggs_pipeline_extended_stats_bucket.go index 692e12637..4e816d416 100644 --- a/search_aggs_pipeline_extended_stats_bucket.go +++ b/search_aggs_pipeline_extended_stats_bucket.go @@ -12,7 +12,7 @@ package elastic // This aggregation provides a few more statistics (sum of squares, standard deviation, etc) // compared to the stats_bucket aggregation. // For more details, see -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-pipeline-extended-stats-bucket-aggregation.html +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-pipeline-extended-stats-bucket-aggregation.html type ExtendedStatsBucketAggregation struct { format string gapPolicy string diff --git a/search_aggs_pipeline_max_bucket.go b/search_aggs_pipeline_max_bucket.go index 4376ddbb4..6cd087eeb 100644 --- a/search_aggs_pipeline_max_bucket.go +++ b/search_aggs_pipeline_max_bucket.go @@ -11,7 +11,7 @@ package elastic // be a multi-bucket aggregation. // // For more details, see -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-pipeline-max-bucket-aggregation.html +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-pipeline-max-bucket-aggregation.html type MaxBucketAggregation struct { format string gapPolicy string diff --git a/search_aggs_pipeline_min_bucket.go b/search_aggs_pipeline_min_bucket.go index b20da5e6b..c87f0d969 100644 --- a/search_aggs_pipeline_min_bucket.go +++ b/search_aggs_pipeline_min_bucket.go @@ -11,7 +11,7 @@ package elastic // be a multi-bucket aggregation. // // For more details, see -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-pipeline-min-bucket-aggregation.html +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-pipeline-min-bucket-aggregation.html type MinBucketAggregation struct { format string gapPolicy string diff --git a/search_aggs_pipeline_mov_avg.go b/search_aggs_pipeline_mov_avg.go index dd412aa02..035dc0e99 100644 --- a/search_aggs_pipeline_mov_avg.go +++ b/search_aggs_pipeline_mov_avg.go @@ -8,7 +8,7 @@ package elastic // across the data and emit the average value of that window. // // For more details, see -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-pipeline-movavg-aggregation.html +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-pipeline-movavg-aggregation.html // // Deprecated: The MovAvgAggregation has been deprecated in 6.4.0. Use the more generate MovFnAggregation instead. type MovAvgAggregation struct { @@ -147,7 +147,7 @@ func (a *MovAvgAggregation) Source() (interface{}, error) { } // -- Models for moving averages -- -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-pipeline-movavg-aggregation.html#_models +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-pipeline-movavg-aggregation.html#_models // MovAvgModel specifies the model to use with the MovAvgAggregation. type MovAvgModel interface { @@ -160,7 +160,7 @@ type MovAvgModel interface { // EWMAMovAvgModel calculates an exponentially weighted moving average. // // For more details, see -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-pipeline-movavg-aggregation.html#_ewma_exponentially_weighted +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-pipeline-movavg-aggregation.html#_ewma_exponentially_weighted type EWMAMovAvgModel struct { alpha *float64 } @@ -198,7 +198,7 @@ func (m *EWMAMovAvgModel) Settings() map[string]interface{} { // HoltLinearMovAvgModel calculates a doubly exponential weighted moving average. // // For more details, see -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-pipeline-movavg-aggregation.html#_holt_linear +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-pipeline-movavg-aggregation.html#_holt_linear type HoltLinearMovAvgModel struct { alpha *float64 beta *float64 @@ -247,7 +247,7 @@ func (m *HoltLinearMovAvgModel) Settings() map[string]interface{} { // HoltWintersMovAvgModel calculates a triple exponential weighted moving average. // // For more details, see -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-pipeline-movavg-aggregation.html#_holt_winters +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-pipeline-movavg-aggregation.html#_holt_winters type HoltWintersMovAvgModel struct { alpha *float64 beta *float64 @@ -334,7 +334,7 @@ func (m *HoltWintersMovAvgModel) Settings() map[string]interface{} { // by position in collection. // // For more details, see -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-pipeline-movavg-aggregation.html#_linear +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-pipeline-movavg-aggregation.html#_linear type LinearMovAvgModel struct { } @@ -358,7 +358,7 @@ func (m *LinearMovAvgModel) Settings() map[string]interface{} { // SimpleMovAvgModel calculates a simple unweighted (arithmetic) moving average. // // For more details, see -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-pipeline-movavg-aggregation.html#_simple +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-pipeline-movavg-aggregation.html#_simple type SimpleMovAvgModel struct { } diff --git a/search_aggs_pipeline_mov_fn.go b/search_aggs_pipeline_mov_fn.go index 870517b72..ea8cbdc2f 100644 --- a/search_aggs_pipeline_mov_fn.go +++ b/search_aggs_pipeline_mov_fn.go @@ -10,7 +10,7 @@ package elastic // // You must pass a script to process the values. There are a number of predefined // script functions you can use as described here: -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-pipeline-movfn-aggregation.html#_pre_built_functions. +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-pipeline-movfn-aggregation.html#_pre_built_functions. // // Example: // agg := elastic.NewMovFnAggregation( @@ -20,7 +20,7 @@ package elastic // ) // // For more details, see -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-pipeline-movfn-aggregation.html. +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-pipeline-movfn-aggregation.html. type MovFnAggregation struct { script *Script format string diff --git a/search_aggs_pipeline_percentiles_bucket.go b/search_aggs_pipeline_percentiles_bucket.go index b0f3af4f5..a5a3fdf68 100644 --- a/search_aggs_pipeline_percentiles_bucket.go +++ b/search_aggs_pipeline_percentiles_bucket.go @@ -10,7 +10,7 @@ package elastic // be a multi-bucket aggregation. // // For more details, see -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-pipeline-percentiles-bucket-aggregation.html +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-pipeline-percentiles-bucket-aggregation.html type PercentilesBucketAggregation struct { format string gapPolicy string diff --git a/search_aggs_pipeline_serial_diff.go b/search_aggs_pipeline_serial_diff.go index 0c88f8325..d2a9b4c9d 100644 --- a/search_aggs_pipeline_serial_diff.go +++ b/search_aggs_pipeline_serial_diff.go @@ -9,7 +9,7 @@ package elastic // subtracted from itself at different time lags or periods. // // For more details, see -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-pipeline-serialdiff-aggregation.html +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-pipeline-serialdiff-aggregation.html type SerialDiffAggregation struct { format string gapPolicy string diff --git a/search_aggs_pipeline_stats_bucket.go b/search_aggs_pipeline_stats_bucket.go index e4521b9e4..2eb61ebab 100644 --- a/search_aggs_pipeline_stats_bucket.go +++ b/search_aggs_pipeline_stats_bucket.go @@ -10,7 +10,7 @@ package elastic // be a multi-bucket aggregation. // // For more details, see -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-pipeline-stats-bucket-aggregation.html +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-pipeline-stats-bucket-aggregation.html type StatsBucketAggregation struct { format string gapPolicy string diff --git a/search_aggs_pipeline_sum_bucket.go b/search_aggs_pipeline_sum_bucket.go index 53db03383..cfdafce07 100644 --- a/search_aggs_pipeline_sum_bucket.go +++ b/search_aggs_pipeline_sum_bucket.go @@ -10,7 +10,7 @@ package elastic // be a multi-bucket aggregation. // // For more details, see -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-pipeline-sum-bucket-aggregation.html +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-pipeline-sum-bucket-aggregation.html type SumBucketAggregation struct { format string gapPolicy string diff --git a/search_collapse_builder.go b/search_collapse_builder.go index 34b7e7c85..0de4eed61 100644 --- a/search_collapse_builder.go +++ b/search_collapse_builder.go @@ -5,7 +5,7 @@ package elastic // CollapseBuilder enables field collapsing on a search request. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-request-collapse.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-request-collapse.html // for details. type CollapseBuilder struct { field string diff --git a/search_queries_bool.go b/search_queries_bool.go index 042278894..d192d79ed 100644 --- a/search_queries_bool.go +++ b/search_queries_bool.go @@ -9,7 +9,7 @@ import "fmt" // A bool query matches documents matching boolean // combinations of other queries. // For more details, see: -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/query-dsl-bool-query.html +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/query-dsl-bool-query.html type BoolQuery struct { Query mustClauses []Query diff --git a/search_queries_boosting.go b/search_queries_boosting.go index d2a8de3c9..7a76efbf9 100644 --- a/search_queries_boosting.go +++ b/search_queries_boosting.go @@ -7,7 +7,7 @@ package elastic // A boosting query can be used to effectively // demote results that match a given query. // For more details, see: -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/query-dsl-boosting-query.html +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/query-dsl-boosting-query.html type BoostingQuery struct { Query positiveClause Query diff --git a/search_queries_common_terms.go b/search_queries_common_terms.go index 5943a92f0..a8e51c768 100644 --- a/search_queries_common_terms.go +++ b/search_queries_common_terms.go @@ -8,7 +8,7 @@ package elastic // which improves the precision and recall of search results // (by taking stopwords into account), without sacrificing performance. // For more details, see: -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/query-dsl-common-terms-query.html +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/query-dsl-common-terms-query.html type CommonTermsQuery struct { Query name string diff --git a/search_queries_constant_score.go b/search_queries_constant_score.go index 40df73f20..cfa8dff79 100644 --- a/search_queries_constant_score.go +++ b/search_queries_constant_score.go @@ -8,7 +8,7 @@ package elastic // a constant score equal to the query boost for every document in the filter. // // For more details, see: -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/query-dsl-constant-score-query.html +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/query-dsl-constant-score-query.html type ConstantScoreQuery struct { filter Query boost *float64 diff --git a/search_queries_dis_max.go b/search_queries_dis_max.go index 6eade88e2..48376d6dc 100644 --- a/search_queries_dis_max.go +++ b/search_queries_dis_max.go @@ -10,7 +10,7 @@ package elastic // increment for any additional matching subqueries. // // For more details, see: -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/query-dsl-dis-max-query.html +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/query-dsl-dis-max-query.html type DisMaxQuery struct { queries []Query boost *float64 diff --git a/search_queries_exists.go b/search_queries_exists.go index 4a38f1199..33f15893b 100644 --- a/search_queries_exists.go +++ b/search_queries_exists.go @@ -8,7 +8,7 @@ package elastic // has a value in them. // // For more details, see: -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/query-dsl-exists-query.html +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/query-dsl-exists-query.html type ExistsQuery struct { name string queryName string diff --git a/search_queries_fsq.go b/search_queries_fsq.go index 40b30ee21..c8dfda34c 100644 --- a/search_queries_fsq.go +++ b/search_queries_fsq.go @@ -10,7 +10,7 @@ package elastic // to compute the score on a filtered set of documents. // // For more details, see -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/query-dsl-function-score-query.html +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/query-dsl-function-score-query.html type FunctionScoreQuery struct { query Query filter Query diff --git a/search_queries_fsq_score_funcs.go b/search_queries_fsq_score_funcs.go index be84b2b8e..b14f3b7cf 100644 --- a/search_queries_fsq_score_funcs.go +++ b/search_queries_fsq_score_funcs.go @@ -18,7 +18,7 @@ type ScoreFunction interface { // -- Exponential Decay -- // ExponentialDecayFunction builds an exponential decay score function. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/query-dsl-function-score-query.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/query-dsl-function-score-query.html // for details. type ExponentialDecayFunction struct { fieldName string @@ -75,7 +75,7 @@ func (fn *ExponentialDecayFunction) Offset(offset interface{}) *ExponentialDecay } // Weight adjusts the score of the score function. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/query-dsl-function-score-query.html#_using_function_score +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/query-dsl-function-score-query.html#_using_function_score // for details. func (fn *ExponentialDecayFunction) Weight(weight float64) *ExponentialDecayFunction { fn.weight = &weight @@ -120,7 +120,7 @@ func (fn *ExponentialDecayFunction) Source() (interface{}, error) { // -- Gauss Decay -- // GaussDecayFunction builds a gauss decay score function. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/query-dsl-function-score-query.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/query-dsl-function-score-query.html // for details. type GaussDecayFunction struct { fieldName string @@ -177,7 +177,7 @@ func (fn *GaussDecayFunction) Offset(offset interface{}) *GaussDecayFunction { } // Weight adjusts the score of the score function. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/query-dsl-function-score-query.html#_using_function_score +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/query-dsl-function-score-query.html#_using_function_score // for details. func (fn *GaussDecayFunction) Weight(weight float64) *GaussDecayFunction { fn.weight = &weight @@ -223,7 +223,7 @@ func (fn *GaussDecayFunction) Source() (interface{}, error) { // -- Linear Decay -- // LinearDecayFunction builds a linear decay score function. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/query-dsl-function-score-query.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/query-dsl-function-score-query.html // for details. type LinearDecayFunction struct { fieldName string @@ -280,7 +280,7 @@ func (fn *LinearDecayFunction) Offset(offset interface{}) *LinearDecayFunction { } // Weight adjusts the score of the score function. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/query-dsl-function-score-query.html#_using_function_score +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/query-dsl-function-score-query.html#_using_function_score // for details. func (fn *LinearDecayFunction) Weight(weight float64) *LinearDecayFunction { fn.weight = &weight @@ -336,7 +336,7 @@ func (fn *LinearDecayFunction) Source() (interface{}, error) { // compute or influence the score of documents that match with the inner // query or filter. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/query-dsl-function-score-query.html#_script_score +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/query-dsl-function-score-query.html#_script_score // for details. type ScriptFunction struct { script *Script @@ -363,7 +363,7 @@ func (fn *ScriptFunction) Script(script *Script) *ScriptFunction { } // Weight adjusts the score of the score function. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/query-dsl-function-score-query.html#_using_function_score +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/query-dsl-function-score-query.html#_using_function_score // for details. func (fn *ScriptFunction) Weight(weight float64) *ScriptFunction { fn.weight = &weight @@ -394,7 +394,7 @@ func (fn *ScriptFunction) Source() (interface{}, error) { // FieldValueFactorFunction is a function score function that allows you // to use a field from a document to influence the score. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/query-dsl-function-score-query.html#_field_value_factor. +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/query-dsl-function-score-query.html#_field_value_factor. type FieldValueFactorFunction struct { field string factor *float64 @@ -435,7 +435,7 @@ func (fn *FieldValueFactorFunction) Modifier(modifier string) *FieldValueFactorF } // Weight adjusts the score of the score function. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/query-dsl-function-score-query.html#_using_function_score +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/query-dsl-function-score-query.html#_using_function_score // for details. func (fn *FieldValueFactorFunction) Weight(weight float64) *FieldValueFactorFunction { fn.weight = &weight @@ -477,7 +477,7 @@ func (fn *FieldValueFactorFunction) Source() (interface{}, error) { // WeightFactorFunction builds a weight factor function that multiplies // the weight to the score. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/query-dsl-function-score-query.html#_weight +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/query-dsl-function-score-query.html#_weight // for details. type WeightFactorFunction struct { weight float64 @@ -495,7 +495,7 @@ func (fn *WeightFactorFunction) Name() string { } // Weight adjusts the score of the score function. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/query-dsl-function-score-query.html#_using_function_score +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/query-dsl-function-score-query.html#_using_function_score // for details. func (fn *WeightFactorFunction) Weight(weight float64) *WeightFactorFunction { fn.weight = weight @@ -517,7 +517,7 @@ func (fn *WeightFactorFunction) Source() (interface{}, error) { // -- Random -- // RandomFunction builds a random score function. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/query-dsl-function-score-query.html#_random +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/query-dsl-function-score-query.html#_random // for details. type RandomFunction struct { field string @@ -555,7 +555,7 @@ func (fn *RandomFunction) Seed(seed interface{}) *RandomFunction { } // Weight adjusts the score of the score function. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/query-dsl-function-score-query.html#_using_function_score +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/query-dsl-function-score-query.html#_using_function_score // for details. func (fn *RandomFunction) Weight(weight float64) *RandomFunction { fn.weight = &weight diff --git a/search_queries_fuzzy.go b/search_queries_fuzzy.go index a18ab9f88..a81acfcfd 100644 --- a/search_queries_fuzzy.go +++ b/search_queries_fuzzy.go @@ -8,7 +8,7 @@ package elastic // string fields, and a +/- margin on numeric and date fields. // // For more details, see -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/query-dsl-fuzzy-query.html +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/query-dsl-fuzzy-query.html type FuzzyQuery struct { name string value interface{} diff --git a/search_queries_geo_bounding_box.go b/search_queries_geo_bounding_box.go index d39963380..6345867f6 100644 --- a/search_queries_geo_bounding_box.go +++ b/search_queries_geo_bounding_box.go @@ -10,7 +10,7 @@ import "errors" // a bounding box. // // For more details, see: -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/query-dsl-geo-bounding-box-query.html +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/query-dsl-geo-bounding-box-query.html type GeoBoundingBoxQuery struct { name string top *float64 diff --git a/search_queries_geo_distance.go b/search_queries_geo_distance.go index 00cec6d41..4e6878a4b 100644 --- a/search_queries_geo_distance.go +++ b/search_queries_geo_distance.go @@ -8,7 +8,7 @@ package elastic // within a specific distance from a geo point. // // For more details, see: -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/query-dsl-geo-distance-query.html +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/query-dsl-geo-distance-query.html type GeoDistanceQuery struct { name string distance string diff --git a/search_queries_geo_polygon.go b/search_queries_geo_polygon.go index 6821b1699..98cd5fe34 100644 --- a/search_queries_geo_polygon.go +++ b/search_queries_geo_polygon.go @@ -7,7 +7,7 @@ package elastic // GeoPolygonQuery allows to include hits that only fall within a polygon of points. // // For more details, see: -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/query-dsl-geo-polygon-query.html +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/query-dsl-geo-polygon-query.html type GeoPolygonQuery struct { name string points []*GeoPoint diff --git a/search_queries_has_child.go b/search_queries_has_child.go index 098eb9787..d2ce2f957 100644 --- a/search_queries_has_child.go +++ b/search_queries_has_child.go @@ -8,7 +8,7 @@ package elastic // in parent documents that have child docs matching the query. // // For more details, see -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/query-dsl-has-child-query.html +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/query-dsl-has-child-query.html type HasChildQuery struct { query Query childType string diff --git a/search_queries_has_parent.go b/search_queries_has_parent.go index 1104941e0..1723f002c 100644 --- a/search_queries_has_parent.go +++ b/search_queries_has_parent.go @@ -11,7 +11,7 @@ package elastic // same manner as has_child query. // // For more details, see -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/query-dsl-has-parent-query.html +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/query-dsl-has-parent-query.html type HasParentQuery struct { query Query parentType string diff --git a/search_queries_ids.go b/search_queries_ids.go index aa7c99dc3..8873fc2af 100644 --- a/search_queries_ids.go +++ b/search_queries_ids.go @@ -8,7 +8,7 @@ package elastic // Note, this query uses the _uid field. // // For more details, see -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/query-dsl-ids-query.html +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/query-dsl-ids-query.html type IdsQuery struct { types []string values []string diff --git a/search_queries_match.go b/search_queries_match.go index 018ea0be7..fce10781a 100644 --- a/search_queries_match.go +++ b/search_queries_match.go @@ -12,7 +12,7 @@ package elastic // or use one of the shortcuts e.g. NewMatchPhraseQuery(...). // // For more details, see -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/query-dsl-match-query.html +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/query-dsl-match-query.html type MatchQuery struct { name string text interface{} diff --git a/search_queries_match_all.go b/search_queries_match_all.go index 39e901a15..921ead585 100644 --- a/search_queries_match_all.go +++ b/search_queries_match_all.go @@ -8,7 +8,7 @@ package elastic // giving them all a _score of 1.0. // // For more details, see -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/query-dsl-match-all-query.html +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/query-dsl-match-all-query.html type MatchAllQuery struct { boost *float64 queryName string diff --git a/search_queries_match_none.go b/search_queries_match_none.go index 2053a7c9a..a1d1f87b5 100644 --- a/search_queries_match_none.go +++ b/search_queries_match_none.go @@ -8,7 +8,7 @@ package elastic // MatchAllQuery. // // For more details, see -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/query-dsl-match-all-query.html +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/query-dsl-match-all-query.html type MatchNoneQuery struct { queryName string } diff --git a/search_queries_match_phrase.go b/search_queries_match_phrase.go index 8f6c9679c..974a49acb 100644 --- a/search_queries_match_phrase.go +++ b/search_queries_match_phrase.go @@ -8,7 +8,7 @@ package elastic // the analyzed text. // // For more details, see -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/query-dsl-match-query-phrase.html +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/query-dsl-match-query-phrase.html type MatchPhraseQuery struct { name string value interface{} diff --git a/search_queries_match_phrase_prefix.go b/search_queries_match_phrase_prefix.go index 0e3d9952e..fb366d31d 100644 --- a/search_queries_match_phrase_prefix.go +++ b/search_queries_match_phrase_prefix.go @@ -8,7 +8,7 @@ package elastic // prefix matches on the last term in the text. // // For more details, see -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/query-dsl-match-query-phrase-prefix.html +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/query-dsl-match-query-phrase-prefix.html type MatchPhrasePrefixQuery struct { name string value interface{} diff --git a/search_queries_more_like_this.go b/search_queries_more_like_this.go index 920663109..fae8d4657 100644 --- a/search_queries_more_like_this.go +++ b/search_queries_more_like_this.go @@ -13,7 +13,7 @@ import "errors" // how the terms should be selected and how the query is formed. // // For more details, see -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/query-dsl-mlt-query.html +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/query-dsl-mlt-query.html type MoreLikeThisQuery struct { fields []string docs []*MoreLikeThisQueryItem diff --git a/search_queries_multi_match.go b/search_queries_multi_match.go index a6c524085..38dcc564c 100644 --- a/search_queries_multi_match.go +++ b/search_queries_multi_match.go @@ -12,7 +12,7 @@ import ( // MultiMatchQuery builds on the MatchQuery to allow multi-field queries. // // For more details, see -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/query-dsl-multi-match-query.html +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/query-dsl-multi-match-query.html type MultiMatchQuery struct { text interface{} fields []string diff --git a/search_queries_nested.go b/search_queries_nested.go index 7b0082af4..211649d01 100644 --- a/search_queries_nested.go +++ b/search_queries_nested.go @@ -10,7 +10,7 @@ package elastic // root parent doc (or parent nested mapping). // // For more details, see -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/query-dsl-nested-query.html +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/query-dsl-nested-query.html type NestedQuery struct { query Query path string diff --git a/search_queries_parent_id.go b/search_queries_parent_id.go index e4afde8e4..46a499915 100644 --- a/search_queries_parent_id.go +++ b/search_queries_parent_id.go @@ -8,7 +8,7 @@ package elastic // particular parent. Given the following mapping definition. // // For more details, see -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/query-dsl-parent-id-query.html +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/query-dsl-parent-id-query.html type ParentIdQuery struct { typ string id string diff --git a/search_queries_percolator.go b/search_queries_percolator.go index d10daaeef..5a459d051 100644 --- a/search_queries_percolator.go +++ b/search_queries_percolator.go @@ -9,7 +9,7 @@ import "errors" // PercolatorQuery can be used to match queries stored in an index. // // For more details, see -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/query-dsl-percolate-query.html +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/query-dsl-percolate-query.html type PercolatorQuery struct { field string name string diff --git a/search_queries_prefix.go b/search_queries_prefix.go index fec4c77bc..8178aac3f 100644 --- a/search_queries_prefix.go +++ b/search_queries_prefix.go @@ -8,7 +8,7 @@ package elastic // with a specified prefix (not analyzed). // // For more details, see -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/query-dsl-prefix-query.html +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/query-dsl-prefix-query.html type PrefixQuery struct { name string prefix string diff --git a/search_queries_query_string.go b/search_queries_query_string.go index 6affbb9d7..f9baa21d7 100644 --- a/search_queries_query_string.go +++ b/search_queries_query_string.go @@ -11,7 +11,7 @@ import ( // QueryStringQuery uses the query parser in order to parse its content. // // For more details, see -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/query-dsl-query-string-query.html +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/query-dsl-query-string-query.html type QueryStringQuery struct { queryString string defaultField string diff --git a/search_queries_range.go b/search_queries_range.go index bbf5ebf7e..e3c07308b 100644 --- a/search_queries_range.go +++ b/search_queries_range.go @@ -7,7 +7,7 @@ package elastic // RangeQuery matches documents with fields that have terms within a certain range. // // For details, see -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/query-dsl-range-query.html +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/query-dsl-range-query.html type RangeQuery struct { name string from interface{} diff --git a/search_queries_regexp.go b/search_queries_regexp.go index 412224369..25a0c3d02 100644 --- a/search_queries_regexp.go +++ b/search_queries_regexp.go @@ -7,7 +7,7 @@ package elastic // RegexpQuery allows you to use regular expression term queries. // // For more details, see -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/query-dsl-regexp-query.html +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/query-dsl-regexp-query.html type RegexpQuery struct { name string regexp string diff --git a/search_queries_script.go b/search_queries_script.go index 0f30751f2..d99b0c053 100644 --- a/search_queries_script.go +++ b/search_queries_script.go @@ -9,7 +9,7 @@ import "errors" // ScriptQuery allows to define scripts as filters. // // For details, see -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/query-dsl-script-query.html +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/query-dsl-script-query.html type ScriptQuery struct { script *Script queryName string diff --git a/search_queries_simple_query_string.go b/search_queries_simple_query_string.go index f406a7d0f..230e041e6 100644 --- a/search_queries_simple_query_string.go +++ b/search_queries_simple_query_string.go @@ -15,7 +15,7 @@ import ( // and discards invalid parts of the query. // // For more details, see -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/query-dsl-simple-query-string-query.html +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/query-dsl-simple-query-string-query.html type SimpleQueryStringQuery struct { queryText string analyzer string diff --git a/search_queries_slice.go b/search_queries_slice.go index 1b5c8ee6e..0eac78436 100644 --- a/search_queries_slice.go +++ b/search_queries_slice.go @@ -6,7 +6,7 @@ package elastic // SliceQuery allows to partition the documents into several slices. // It is used e.g. to slice scroll operations in Elasticsearch 5.0 or later. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-request-scroll.html#sliced-scroll +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-request-scroll.html#sliced-scroll // for details. type SliceQuery struct { field string diff --git a/search_queries_term.go b/search_queries_term.go index 352fce23f..832e67e5e 100644 --- a/search_queries_term.go +++ b/search_queries_term.go @@ -8,7 +8,7 @@ package elastic // in the inverted index. // // For details, see -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/query-dsl-term-query.html +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/query-dsl-term-query.html type TermQuery struct { name string value interface{} diff --git a/search_queries_terms.go b/search_queries_terms.go index bd7ca4272..b8171cdb8 100644 --- a/search_queries_terms.go +++ b/search_queries_terms.go @@ -8,7 +8,7 @@ package elastic // of the provided terms (not analyzed). // // For more details, see -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/query-dsl-terms-query.html +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/query-dsl-terms-query.html type TermsQuery struct { name string values []interface{} diff --git a/search_queries_terms_set.go b/search_queries_terms_set.go index 242ded494..6a33a2a34 100644 --- a/search_queries_terms_set.go +++ b/search_queries_terms_set.go @@ -12,7 +12,7 @@ package elastic // minimum should match script. // // For more details, see -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/query-dsl-terms-set-query.html +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/query-dsl-terms-set-query.html type TermsSetQuery struct { name string values []interface{} diff --git a/search_queries_type.go b/search_queries_type.go index e6958bbf3..61867c1e3 100644 --- a/search_queries_type.go +++ b/search_queries_type.go @@ -7,7 +7,7 @@ package elastic // TypeQuery filters documents matching the provided document / mapping type. // // For details, see: -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/query-dsl-type-query.html +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/query-dsl-type-query.html type TypeQuery struct { typ string } diff --git a/search_queries_wildcard.go b/search_queries_wildcard.go index 125db0b2e..33e4ea2aa 100644 --- a/search_queries_wildcard.go +++ b/search_queries_wildcard.go @@ -13,7 +13,7 @@ package elastic // The wildcard query maps to Lucene WildcardQuery. // // For more details, see -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/query-dsl-wildcard-query.html +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/query-dsl-wildcard-query.html type WildcardQuery struct { name string wildcard string diff --git a/search_queries_wrapper.go b/search_queries_wrapper.go index 428d450ee..2a32d1e0a 100644 --- a/search_queries_wrapper.go +++ b/search_queries_wrapper.go @@ -7,7 +7,7 @@ package elastic // WrapperQuery accepts any other query as base64 encoded string. // // For details, see -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/query-dsl-wrapper-query.html. +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/query-dsl-wrapper-query.html. type WrapperQuery struct { source string } diff --git a/search_request.go b/search_request.go index 623d4e71c..3a444b808 100644 --- a/search_request.go +++ b/search_request.go @@ -346,7 +346,7 @@ func (r *SearchRequest) SearchAfter(sortValues ...interface{}) *SearchRequest { // Slice allows partitioning the documents in multiple slices. // It is e.g. used to slice a scroll operation, supported in // Elasticsearch 5.0 or later. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-request-scroll.html#sliced-scroll +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-request-scroll.html#sliced-scroll // for details. func (r *SearchRequest) Slice(sliceQuery Query) *SearchRequest { r.searchSource = r.searchSource.Slice(sliceQuery) @@ -363,7 +363,7 @@ func (r *SearchRequest) TrackScores(trackScores bool) *SearchRequest { // TrackTotalHits indicates if the total hit count for the query should be tracked. // Defaults to true. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-request-track-total-hits.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-request-track-total-hits.html // for details. func (r *SearchRequest) TrackTotalHits(trackTotalHits interface{}) *SearchRequest { r.searchSource = r.searchSource.TrackTotalHits(trackTotalHits) @@ -455,7 +455,7 @@ func (r *SearchRequest) PreFilterShardSize(size int) *SearchRequest { // header is used e.g. by MultiSearch to get information about the search header // of one SearchRequest. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-multi-search.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-multi-search.html func (r *SearchRequest) header() interface{} { h := make(map[string]interface{}) if r.searchType != "" { @@ -511,7 +511,7 @@ func (r *SearchRequest) header() interface{} { // // Body is used e.g. by MultiSearch to get information about the search body // of one SearchRequest. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-multi-search.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-multi-search.html func (r *SearchRequest) Body() (string, error) { if r.source == nil { // Default: No custom source specified diff --git a/search_shards.go b/search_shards.go index 40665e21c..4053f8f1f 100644 --- a/search_shards.go +++ b/search_shards.go @@ -15,7 +15,7 @@ import ( ) // SearchShardsService returns the indices and shards that a search request would be executed against. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-shards.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-shards.html type SearchShardsService struct { client *Client pretty bool diff --git a/search_source.go b/search_source.go index dbaeb08d4..1d86e9bfc 100644 --- a/search_source.go +++ b/search_source.go @@ -78,7 +78,7 @@ func (s *SearchSource) PostFilter(postFilter Query) *SearchSource { // Slice allows partitioning the documents in multiple slices. // It is e.g. used to slice a scroll operation, supported in // Elasticsearch 5.0 or later. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-request-scroll.html#sliced-scroll +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-request-scroll.html#sliced-scroll // for details. func (s *SearchSource) Slice(sliceQuery Query) *SearchSource { s.sliceQuery = sliceQuery @@ -169,7 +169,7 @@ func (s *SearchSource) TrackScores(trackScores bool) *SearchSource { // TrackTotalHits controls how the total number of hits should be tracked. // Defaults to 10000 which will count the total hit accurately up to 10,000 hits. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-request-track-total-hits.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-request-track-total-hits.html // for details. func (s *SearchSource) TrackTotalHits(trackTotalHits interface{}) *SearchSource { s.trackTotalHits = trackTotalHits @@ -179,7 +179,7 @@ func (s *SearchSource) TrackTotalHits(trackTotalHits interface{}) *SearchSource // SearchAfter allows a different form of pagination by using a live cursor, // using the results of the previous page to help the retrieval of the next. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-request-search-after.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-request-search-after.html func (s *SearchSource) SearchAfter(sortValues ...interface{}) *SearchSource { s.searchAfterSortValues = append(s.searchAfterSortValues, sortValues...) return s diff --git a/search_terms_lookup.go b/search_terms_lookup.go index 1edcdc096..f5d6541ac 100644 --- a/search_terms_lookup.go +++ b/search_terms_lookup.go @@ -7,7 +7,7 @@ package elastic // TermsLookup encapsulates the parameters needed to fetch terms. // // For more details, see -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/query-dsl-terms-query.html#query-dsl-terms-lookup. +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/query-dsl-terms-query.html#query-dsl-terms-lookup. type TermsLookup struct { index string typ string diff --git a/search_test.go b/search_test.go index 40f600a6c..3fafedeb3 100644 --- a/search_test.go +++ b/search_test.go @@ -800,7 +800,7 @@ func TestSearchInnerHitsOnHasChild(t *testing.T) { } // Add documents - // See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/parent-join.html for example code. + // See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/parent-join.html for example code. doc1 := joinDoc{ Message: "This is a question", JoinField: &joinField{Name: "question"}, @@ -913,7 +913,7 @@ func TestSearchInnerHitsOnHasParent(t *testing.T) { } // Add documents - // See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/parent-join.html for example code. + // See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/parent-join.html for example code. doc1 := joinDoc{ Message: "This is a question", JoinField: &joinField{Name: "question"}, diff --git a/snapshot_create.go b/snapshot_create.go index c97c0eb56..59e7cffbe 100644 --- a/snapshot_create.go +++ b/snapshot_create.go @@ -13,7 +13,7 @@ import ( "github.com/olivere/elastic/v7/uritemplates" ) -// SnapshotCreateService is documented at https://www.elastic.co/guide/en/elasticsearch/reference/7.x/modules-snapshots.html. +// SnapshotCreateService is documented at https://www.elastic.co/guide/en/elasticsearch/reference/7.0/modules-snapshots.html. type SnapshotCreateService struct { client *Client pretty bool diff --git a/snapshot_create_repository.go b/snapshot_create_repository.go index 463305ed5..99dbbc5b0 100644 --- a/snapshot_create_repository.go +++ b/snapshot_create_repository.go @@ -14,7 +14,7 @@ import ( ) // SnapshotCreateRepositoryService creates a snapshot repository. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/modules-snapshots.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/modules-snapshots.html // for details. type SnapshotCreateRepositoryService struct { client *Client diff --git a/snapshot_delete.go b/snapshot_delete.go index 510989241..2ba4ad9fd 100644 --- a/snapshot_delete.go +++ b/snapshot_delete.go @@ -15,7 +15,7 @@ import ( // SnapshotDeleteService deletes a snapshot from a snapshot repository. // It is documented at -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/modules-snapshots.html. +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/modules-snapshots.html. type SnapshotDeleteService struct { client *Client repository string diff --git a/snapshot_delete_repository.go b/snapshot_delete_repository.go index be8f856af..e97d7b835 100644 --- a/snapshot_delete_repository.go +++ b/snapshot_delete_repository.go @@ -15,7 +15,7 @@ import ( ) // SnapshotDeleteRepositoryService deletes a snapshot repository. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/modules-snapshots.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/modules-snapshots.html // for details. type SnapshotDeleteRepositoryService struct { client *Client diff --git a/snapshot_get.go b/snapshot_get.go index 074b1ff61..452ba0af3 100644 --- a/snapshot_get.go +++ b/snapshot_get.go @@ -16,7 +16,7 @@ import ( ) // SnapshotGetService lists the snapshots on a repository -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/modules-snapshots.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/modules-snapshots.html // for details. type SnapshotGetService struct { client *Client diff --git a/snapshot_get_repository.go b/snapshot_get_repository.go index 78293c046..56d6ac5f3 100644 --- a/snapshot_get_repository.go +++ b/snapshot_get_repository.go @@ -15,7 +15,7 @@ import ( ) // SnapshotGetRepositoryService reads a snapshot repository. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/modules-snapshots.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/modules-snapshots.html // for details. type SnapshotGetRepositoryService struct { client *Client diff --git a/snapshot_verify_repository.go b/snapshot_verify_repository.go index 4ea38868a..6a32facf8 100644 --- a/snapshot_verify_repository.go +++ b/snapshot_verify_repository.go @@ -14,7 +14,7 @@ import ( ) // SnapshotVerifyRepositoryService verifies a snapshop repository. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/modules-snapshots.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/modules-snapshots.html // for details. type SnapshotVerifyRepositoryService struct { client *Client diff --git a/sort.go b/sort.go index 4ee72e2df..60cc0a11f 100644 --- a/sort.go +++ b/sort.go @@ -9,7 +9,7 @@ import "errors" // -- Sorter -- // Sorter is an interface for sorting strategies, e.g. ScoreSort or FieldSort. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-request-sort.html. +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-request-sort.html. type Sorter interface { Source() (interface{}, error) } @@ -91,7 +91,7 @@ func (info SortInfo) Source() (interface{}, error) { // -- SortByDoc -- // SortByDoc sorts by the "_doc" field, as described in -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-request-scroll.html. +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-request-scroll.html. // // Example: // ss := elastic.NewSearchSource() @@ -305,7 +305,7 @@ func (s *FieldSort) Source() (interface{}, error) { // -- GeoDistanceSort -- // GeoDistanceSort allows for sorting by geographic distance. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-request-sort.html#_geo_distance_sorting. +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-request-sort.html#_geo_distance_sorting. type GeoDistanceSort struct { Sorter fieldName string @@ -371,7 +371,7 @@ func (s *GeoDistanceSort) GeoHashes(geohashes ...string) *GeoDistanceSort { } // Unit specifies the distance unit to use. It defaults to km. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/common-options.html#distance-units +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/common-options.html#distance-units // for details. func (s *GeoDistanceSort) Unit(unit string) *GeoDistanceSort { s.unit = unit @@ -384,7 +384,7 @@ func (s *GeoDistanceSort) GeoDistance(geoDistance string) *GeoDistanceSort { } // DistanceType describes how to compute the distance, e.g. "arc" or "plane". -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-request-sort.html#geo-sorting +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-request-sort.html#geo-sorting // for details. func (s *GeoDistanceSort) DistanceType(distanceType string) *GeoDistanceSort { s.distanceType = &distanceType @@ -474,7 +474,7 @@ func (s *GeoDistanceSort) Source() (interface{}, error) { // -- ScriptSort -- // ScriptSort sorts by a custom script. See -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/modules-scripting.html#modules-scripting +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/modules-scripting.html#modules-scripting // for details about scripting. type ScriptSort struct { Sorter diff --git a/suggester_completion.go b/suggester_completion.go index 5d3d29d16..b680cbd18 100644 --- a/suggester_completion.go +++ b/suggester_completion.go @@ -8,7 +8,7 @@ import "errors" // CompletionSuggester is a fast suggester for e.g. type-ahead completion. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-suggesters-completion.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-suggesters-completion.html // for more details. type CompletionSuggester struct { Suggester @@ -245,7 +245,7 @@ func NewFuzzyCompletionSuggesterOptions() *FuzzyCompletionSuggesterOptions { // EditDistance specifies the maximum number of edits, e.g. a number like "1" or "2" // or a string like "0..2" or ">5". // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/common-options.html#fuzziness +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/common-options.html#fuzziness // for details. func (o *FuzzyCompletionSuggesterOptions) EditDistance(editDistance interface{}) *FuzzyCompletionSuggesterOptions { o.editDistance = editDistance @@ -328,7 +328,7 @@ func NewRegexCompletionSuggesterOptions() *RegexCompletionSuggesterOptions { // Flags represents internal regex flags. // Possible flags are ALL (default), ANYSTRING, COMPLEMENT, EMPTY, INTERSECTION, INTERVAL, or NONE. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-suggesters-completion.html#regex +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-suggesters-completion.html#regex // for details. func (o *RegexCompletionSuggesterOptions) Flags(flags interface{}) *RegexCompletionSuggesterOptions { o.flags = flags @@ -337,7 +337,7 @@ func (o *RegexCompletionSuggesterOptions) Flags(flags interface{}) *RegexComplet // MaxDeterminizedStates represents the maximum automaton states allowed for regex expansion. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-suggesters-completion.html#regex +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-suggesters-completion.html#regex // for details. func (o *RegexCompletionSuggesterOptions) MaxDeterminizedStates(max int) *RegexCompletionSuggesterOptions { o.maxDeterminizedStates = &max diff --git a/suggester_context.go b/suggester_context.go index b036a66a6..fa6e44525 100644 --- a/suggester_context.go +++ b/suggester_context.go @@ -13,7 +13,7 @@ type SuggesterContextQuery interface { } // ContextSuggester is a fast suggester for e.g. type-ahead completion that supports filtering and boosting based on contexts. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/suggester-context.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/suggester-context.html // for more details. type ContextSuggester struct { Suggester diff --git a/suggester_context_category.go b/suggester_context_category.go index a3d762ccd..ccca3018a 100644 --- a/suggester_context_category.go +++ b/suggester_context_category.go @@ -7,7 +7,7 @@ package elastic // -- SuggesterCategoryMapping -- // SuggesterCategoryMapping provides a mapping for a category context in a suggester. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/suggester-context.html#_category_mapping. +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/suggester-context.html#_category_mapping. type SuggesterCategoryMapping struct { name string fieldName string @@ -59,7 +59,7 @@ func (q *SuggesterCategoryMapping) Source() (interface{}, error) { // -- SuggesterCategoryQuery -- // SuggesterCategoryQuery provides querying a category context in a suggester. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/suggester-context.html#_category_query. +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/suggester-context.html#_category_query. type SuggesterCategoryQuery struct { name string values map[string]*int diff --git a/suggester_context_geo.go b/suggester_context_geo.go index 205596533..82ddd5735 100644 --- a/suggester_context_geo.go +++ b/suggester_context_geo.go @@ -7,7 +7,7 @@ package elastic // -- SuggesterGeoMapping -- // SuggesterGeoMapping provides a mapping for a geolocation context in a suggester. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/suggester-context.html#_geo_location_mapping. +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/suggester-context.html#_geo_location_mapping. type SuggesterGeoMapping struct { name string defaultLocations []*GeoPoint @@ -80,7 +80,7 @@ func (q *SuggesterGeoMapping) Source() (interface{}, error) { // -- SuggesterGeoQuery -- // SuggesterGeoQuery provides querying a geolocation context in a suggester. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/suggester-context.html#_geo_location_query +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/suggester-context.html#_geo_location_query type SuggesterGeoQuery struct { name string location *GeoPoint diff --git a/suggester_phrase.go b/suggester_phrase.go index ca74f6332..82ce443b7 100644 --- a/suggester_phrase.go +++ b/suggester_phrase.go @@ -7,7 +7,7 @@ package elastic // PhraseSuggester provides an API to access word alternatives // on a per token basis within a certain string distance. // For more details, see -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-suggesters-phrase.html. +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-suggesters-phrase.html. type PhraseSuggester struct { Suggester name string @@ -316,7 +316,7 @@ type SmoothingModel interface { } // StupidBackoffSmoothingModel implements a stupid backoff smoothing model. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-suggesters-phrase.html#_smoothing_models +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-suggesters-phrase.html#_smoothing_models // for details about smoothing models. type StupidBackoffSmoothingModel struct { discount float64 @@ -341,7 +341,7 @@ func (sm *StupidBackoffSmoothingModel) Source() (interface{}, error) { // -- // LaplaceSmoothingModel implements a laplace smoothing model. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-suggesters-phrase.html#_smoothing_models +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-suggesters-phrase.html#_smoothing_models // for details about smoothing models. type LaplaceSmoothingModel struct { alpha float64 @@ -367,7 +367,7 @@ func (sm *LaplaceSmoothingModel) Source() (interface{}, error) { // LinearInterpolationSmoothingModel implements a linear interpolation // smoothing model. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-suggesters-phrase.html#_smoothing_models +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-suggesters-phrase.html#_smoothing_models // for details about smoothing models. type LinearInterpolationSmoothingModel struct { trigramLamda float64 @@ -403,7 +403,7 @@ type CandidateGenerator interface { } // DirectCandidateGenerator implements a direct candidate generator. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-suggesters-phrase.html#_smoothing_models +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-suggesters-phrase.html#_smoothing_models // for details about smoothing models. type DirectCandidateGenerator struct { field string diff --git a/suggester_term.go b/suggester_term.go index 3e2252b19..ba7d8b608 100644 --- a/suggester_term.go +++ b/suggester_term.go @@ -6,7 +6,7 @@ package elastic // TermSuggester suggests terms based on edit distance. // For more details, see -// https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-suggesters-term.html. +// https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-suggesters-term.html. type TermSuggester struct { Suggester name string diff --git a/tasks_cancel.go b/tasks_cancel.go index a9a1b28b2..99f31b006 100644 --- a/tasks_cancel.go +++ b/tasks_cancel.go @@ -16,7 +16,7 @@ import ( // TasksCancelService can cancel long-running tasks. // It is supported as of Elasticsearch 2.3.0. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/tasks.html#task-cancellation +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/tasks.html#task-cancellation // for details. type TasksCancelService struct { client *Client diff --git a/tasks_get_task.go b/tasks_get_task.go index d8409b9c3..9a5e4e2b2 100644 --- a/tasks_get_task.go +++ b/tasks_get_task.go @@ -10,7 +10,7 @@ import ( ) // TasksGetTaskService retrieves the state of a task in the cluster. It is part of the Task Management API -// documented at https://www.elastic.co/guide/en/elasticsearch/reference/7.x/tasks.html#_current_tasks_information. +// documented at https://www.elastic.co/guide/en/elasticsearch/reference/7.0/tasks.html#_current_tasks_information. type TasksGetTaskService struct { client *Client pretty bool diff --git a/tasks_list.go b/tasks_list.go index db175c5ca..8f90d9c91 100644 --- a/tasks_list.go +++ b/tasks_list.go @@ -16,7 +16,7 @@ import ( // TasksListService retrieves the list of currently executing tasks // on one ore more nodes in the cluster. It is part of the Task Management API -// documented at https://www.elastic.co/guide/en/elasticsearch/reference/7.x/tasks.html. +// documented at https://www.elastic.co/guide/en/elasticsearch/reference/7.0/tasks.html. // // It is supported as of Elasticsearch 2.3.0. type TasksListService struct { diff --git a/termvectors.go b/termvectors.go index 4e6f062e5..a26a96116 100644 --- a/termvectors.go +++ b/termvectors.go @@ -17,7 +17,7 @@ import ( // fields of a particular document. The document could be stored in the // index or artificially provided by the user. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/docs-termvectors.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/docs-termvectors.html // for documentation. type TermvectorsService struct { client *Client @@ -346,7 +346,7 @@ func (s *TermvectorsService) Do(ctx context.Context) (*TermvectorsResponse, erro // TermvectorsFilterSettings adds additional filters to a Termsvector request. // It allows to filter terms based on their tf-idf scores. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/docs-termvectors.html#_terms_filtering +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/docs-termvectors.html#_terms_filtering // for more information. type TermvectorsFilterSettings struct { maxNumTerms *int64 diff --git a/update.go b/update.go index 5826e74ed..1bdca5cb3 100644 --- a/update.go +++ b/update.go @@ -14,7 +14,7 @@ import ( ) // UpdateService updates a document in Elasticsearch. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/docs-update.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/docs-update.html // for details. type UpdateService struct { client *Client @@ -116,7 +116,7 @@ func (b *UpdateService) VersionType(versionType string) *UpdateService { // Refresh the index after performing the update. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/docs-refresh.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/docs-refresh.html // for details. func (b *UpdateService) Refresh(refresh string) *UpdateService { b.refresh = refresh diff --git a/update_by_query.go b/update_by_query.go index f400eb748..60841e91b 100644 --- a/update_by_query.go +++ b/update_by_query.go @@ -261,7 +261,7 @@ func (s *UpdateByQueryService) Query(query Query) *UpdateByQueryService { // Refresh indicates whether the effected indexes should be refreshed. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/docs-refresh.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/docs-refresh.html // for details. func (s *UpdateByQueryService) Refresh(refresh string) *UpdateByQueryService { s.refresh = refresh @@ -324,7 +324,7 @@ func (s *UpdateByQueryService) Size(size int) *UpdateByQueryService { // Slices represents the number of slices (default: 1). // It used to be a number, but can be set to "auto" as of 6.7. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/docs-update-by-query.html#docs-update-by-query-slice +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/docs-update-by-query.html#docs-update-by-query-slice // for details. func (s *UpdateByQueryService) Slices(slices interface{}) *UpdateByQueryService { s.slices = slices diff --git a/validate.go b/validate.go index 06d22c550..7ffd523ff 100644 --- a/validate.go +++ b/validate.go @@ -15,7 +15,7 @@ import ( // ValidateService allows a user to validate a potentially // expensive query without executing it. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-validate.html. +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-validate.html. type ValidateService struct { client *Client pretty bool diff --git a/xpack_info.go b/xpack_info.go index 41e78bb5c..81d65b789 100644 --- a/xpack_info.go +++ b/xpack_info.go @@ -14,7 +14,7 @@ import ( ) // XPackInfoService retrieves xpack info. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/info-api.html. +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/info-api.html. type XPackInfoService struct { client *Client pretty bool diff --git a/xpack_security_delete_role.go b/xpack_security_delete_role.go index 77a2f0a29..5bf407ebc 100644 --- a/xpack_security_delete_role.go +++ b/xpack_security_delete_role.go @@ -14,7 +14,7 @@ import ( ) // XPackSecurityDeleteRoleService delete a role by its name. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/security-api-delete-role.html. +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/security-api-delete-role.html. type XPackSecurityDeleteRoleService struct { client *Client pretty bool diff --git a/xpack_security_delete_role_mapping.go b/xpack_security_delete_role_mapping.go index 2f588b1fc..f4ab38fdb 100644 --- a/xpack_security_delete_role_mapping.go +++ b/xpack_security_delete_role_mapping.go @@ -14,7 +14,7 @@ import ( ) // XPackSecurityDeleteRoleMappingService delete a role mapping by its name. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/security-api-delete-role-mapping.html. +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/security-api-delete-role-mapping.html. type XPackSecurityDeleteRoleMappingService struct { client *Client pretty bool diff --git a/xpack_security_get_role.go b/xpack_security_get_role.go index fd91c595a..eea5c9c1c 100644 --- a/xpack_security_get_role.go +++ b/xpack_security_get_role.go @@ -14,7 +14,7 @@ import ( ) // XPackSecurityGetRoleService retrieves a role by its name. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/security-api-get-role.html. +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/security-api-get-role.html. type XPackSecurityGetRoleService struct { client *Client pretty bool diff --git a/xpack_security_get_role_mapping.go b/xpack_security_get_role_mapping.go index b28757ce2..586b876a0 100644 --- a/xpack_security_get_role_mapping.go +++ b/xpack_security_get_role_mapping.go @@ -14,7 +14,7 @@ import ( ) // XPackSecurityGetRoleMappingService retrieves a role mapping by its name. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/security-api-get-role-mapping.html. +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/security-api-get-role-mapping.html. type XPackSecurityGetRoleMappingService struct { client *Client pretty bool diff --git a/xpack_security_put_role.go b/xpack_security_put_role.go index a0d3f16cb..59f4f5056 100644 --- a/xpack_security_put_role.go +++ b/xpack_security_put_role.go @@ -14,7 +14,7 @@ import ( ) // XPackSecurityPutRoleService retrieves a role by its name. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/security-api-put-role.html. +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/security-api-put-role.html. type XPackSecurityPutRoleService struct { client *Client pretty bool diff --git a/xpack_security_put_role_mapping.go b/xpack_security_put_role_mapping.go index 2c793ccc2..20caaabe0 100644 --- a/xpack_security_put_role_mapping.go +++ b/xpack_security_put_role_mapping.go @@ -14,7 +14,7 @@ import ( ) // XPackSecurityPutRoleMappingService create or update a role mapping by its name. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/security-api-put-role-mapping.html. +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/security-api-put-role-mapping.html. type XPackSecurityPutRoleMappingService struct { client *Client pretty bool diff --git a/xpack_watcher_ack_watch.go b/xpack_watcher_ack_watch.go index 7a529cf64..0b5620df0 100644 --- a/xpack_watcher_ack_watch.go +++ b/xpack_watcher_ack_watch.go @@ -15,7 +15,7 @@ import ( ) // XPackWatcherAckWatchService enables you to manually throttle execution of the watch’s actions. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/watcher-api-ack-watch.html. +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/watcher-api-ack-watch.html. type XPackWatcherAckWatchService struct { client *Client pretty bool diff --git a/xpack_watcher_activate_watch.go b/xpack_watcher_activate_watch.go index 4b13398a8..90b6dcb96 100644 --- a/xpack_watcher_activate_watch.go +++ b/xpack_watcher_activate_watch.go @@ -14,7 +14,7 @@ import ( ) // XPackWatcherActivateWatchService enables you to activate a currently inactive watch. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/watcher-api-activate-watch.html. +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/watcher-api-activate-watch.html. type XPackWatcherActivateWatchService struct { client *Client pretty bool diff --git a/xpack_watcher_deactivate_watch.go b/xpack_watcher_deactivate_watch.go index 25352d67c..41e759b45 100644 --- a/xpack_watcher_deactivate_watch.go +++ b/xpack_watcher_deactivate_watch.go @@ -14,7 +14,7 @@ import ( ) // XPackWatcherDeactivateWatchService enables you to deactivate a currently active watch. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/watcher-api-deactivate-watch.html. +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/watcher-api-deactivate-watch.html. type XPackWatcherDeactivateWatchService struct { client *Client pretty bool diff --git a/xpack_watcher_delete_watch.go b/xpack_watcher_delete_watch.go index 58bed3005..3fde1412a 100644 --- a/xpack_watcher_delete_watch.go +++ b/xpack_watcher_delete_watch.go @@ -14,7 +14,7 @@ import ( ) // XPackWatcherDeleteWatchService removes a watch. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/watcher-api-delete-watch.html. +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/watcher-api-delete-watch.html. type XPackWatcherDeleteWatchService struct { client *Client pretty bool diff --git a/xpack_watcher_execute_watch.go b/xpack_watcher_execute_watch.go index 42a6ab55a..6fa9d23a8 100644 --- a/xpack_watcher_execute_watch.go +++ b/xpack_watcher_execute_watch.go @@ -14,7 +14,7 @@ import ( ) // XPackWatcherExecuteWatchService forces the execution of a stored watch. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/watcher-api-execute-watch.html. +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/watcher-api-execute-watch.html. type XPackWatcherExecuteWatchService struct { client *Client pretty bool diff --git a/xpack_watcher_get_watch.go b/xpack_watcher_get_watch.go index 5500b218e..41d611f64 100644 --- a/xpack_watcher_get_watch.go +++ b/xpack_watcher_get_watch.go @@ -15,7 +15,7 @@ import ( ) // XPackWatcherGetWatchService retrieves a watch by its ID. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/watcher-api-get-watch.html. +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/watcher-api-get-watch.html. type XPackWatcherGetWatchService struct { client *Client pretty bool diff --git a/xpack_watcher_put_watch.go b/xpack_watcher_put_watch.go index a023a2a5b..7731b0b07 100644 --- a/xpack_watcher_put_watch.go +++ b/xpack_watcher_put_watch.go @@ -15,7 +15,7 @@ import ( // XPackWatcherPutWatchService either registers a new watch in Watcher // or update an existing one. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/watcher-api-put-watch.html. +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/watcher-api-put-watch.html. type XPackWatcherPutWatchService struct { client *Client pretty bool diff --git a/xpack_watcher_start.go b/xpack_watcher_start.go index 4d5ad96e6..c0e31c0b4 100644 --- a/xpack_watcher_start.go +++ b/xpack_watcher_start.go @@ -11,7 +11,7 @@ import ( ) // XPackWatcherStartService starts the watcher service if it is not already running. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/watcher-api-start.html. +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/watcher-api-start.html. type XPackWatcherStartService struct { client *Client pretty bool diff --git a/xpack_watcher_stats.go b/xpack_watcher_stats.go index 5a3313847..3055586f7 100644 --- a/xpack_watcher_stats.go +++ b/xpack_watcher_stats.go @@ -12,7 +12,7 @@ import ( ) // XPackWatcherStatsService returns the current watcher metrics. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/watcher-api-stats.html. +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/watcher-api-stats.html. type XPackWatcherStatsService struct { client *Client pretty bool diff --git a/xpack_watcher_stop.go b/xpack_watcher_stop.go index c479dfaf2..87ee92366 100644 --- a/xpack_watcher_stop.go +++ b/xpack_watcher_stop.go @@ -11,7 +11,7 @@ import ( ) // XPackWatcherStopService stops the watcher service if it is running. -// See https://www.elastic.co/guide/en/elasticsearch/reference/7.x/watcher-api-stop.html. +// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/watcher-api-stop.html. type XPackWatcherStopService struct { client *Client pretty bool