lib/elasticsearch/api/actions/search_mvt.rb in elasticsearch-api-7.15.0 vs lib/elasticsearch/api/actions/search_mvt.rb in elasticsearch-api-7.16.0

- old
+ new

@@ -30,16 +30,17 @@ # @option arguments [Integer] :x X coordinate for the vector tile to search # @option arguments [Integer] :y Y coordinate for the vector tile to search # @option arguments [Boolean] :exact_bounds If false, the meta layer's feature is the bounding box of the tile. If true, the meta layer's feature is a bounding box resulting from a `geo_bounds` aggregation. # @option arguments [Integer] :extent Size, in pixels, of a side of the vector tile. # @option arguments [Integer] :grid_precision Additional zoom levels available through the aggs layer. Accepts 0-8. - # @option arguments [String] :grid_type Determines the geometry type for features in the aggs layer. (options: grid, point) + # @option arguments [String] :grid_type Determines the geometry type for features in the aggs layer. (options: grid, point, centroid) # @option arguments [Integer] :size Maximum number of features to return in the hits layer. Accepts 0-10000. + # @option arguments [Boolean|long] :track_total_hits Indicate if the number of documents that match the query should be tracked. A number can also be specified, to accurately track the total hit count up to the number. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body Search request body. # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/7.15/search-vector-tile-api.html + # @see https://www.elastic.co/guide/en/elasticsearch/reference/7.16/search-vector-tile-api.html # def search_mvt(arguments = {}) raise ArgumentError, "Required argument 'index' missing" unless arguments[:index] raise ArgumentError, "Required argument 'field' missing" unless arguments[:field] raise ArgumentError, "Required argument 'zoom' missing" unless arguments[:zoom] @@ -74,10 +75,11 @@ ParamsRegistry.register(:search_mvt, [ :exact_bounds, :extent, :grid_precision, :grid_type, - :size + :size, + :track_total_hits ].freeze) end end end