algolia 3.28.1 → 3.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +1 -1
- data/lib/algolia/models/composition/facet_ordering.rb +1 -1
- data/lib/algolia/models/composition/{facets.rb → index_settings_facets.rb} +6 -3
- data/lib/algolia/models/composition/params.rb +13 -0
- data/lib/algolia/models/ingestion/authentication_update.rb +2 -13
- data/lib/algolia/models/ingestion/source_big_commerce.rb +1 -0
- data/lib/algolia/models/ingestion/source_big_query.rb +1 -0
- data/lib/algolia/models/ingestion/source_commercetools.rb +1 -0
- data/lib/algolia/models/ingestion/source_csv.rb +1 -0
- data/lib/algolia/models/ingestion/source_docker.rb +1 -0
- data/lib/algolia/models/ingestion/source_ga4_big_query_export.rb +1 -0
- data/lib/algolia/models/ingestion/source_json.rb +1 -0
- data/lib/algolia/models/ingestion/source_update_commercetools.rb +1 -0
- data/lib/algolia/models/ingestion/source_update_docker.rb +1 -0
- data/lib/algolia/models/ingestion/source_update_shopify.rb +1 -0
- data/lib/algolia/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bcde7ae71c32fa6e073950147008629bff66d7ecbf6b12a444eb77940b2554ee
|
|
4
|
+
data.tar.gz: f56588ae532e018f7a7b98ce88cef47b68d99eef0c5fe1652eca50823ac36d1a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1d1a35d5c6b0b0d0496ea9602fe3d7b8b7d451bfbb01c76403dbb8247910d99e7080ab5e4d0df11b20c38a5a9fbf8215d3669ba8a1a935c9ba9e807ed02e1daa
|
|
7
|
+
data.tar.gz: '0812ca5adb24357e0dfa5d48be4ef7f5e206b3ecd105bba4dd2c1cb8cc456b7b346677f793b0e8cef4e2defacf1ba949b4dc32dc473ef7a5860c997c56a540c1'
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
## [3.29.0](https://github.com/algolia/algoliasearch-client-ruby/compare/3.28.1...3.29.0)
|
|
2
|
+
|
|
3
|
+
- [7f9de7cd9](https://github.com/algolia/api-clients-automation/commit/7f9de7cd9) fix(specs): ingestion small fix + added source input descriptions ([#5515](https://github.com/algolia/api-clients-automation/pull/5515)) by [@sbellone](https://github.com/sbellone/)
|
|
4
|
+
- [7287faaa7](https://github.com/algolia/api-clients-automation/commit/7287faaa7) feat(specs): add `facets` query parameter available at run time ([#5486](https://github.com/algolia/api-clients-automation/pull/5486)) by [@ClaraMuller](https://github.com/ClaraMuller/)
|
|
5
|
+
|
|
1
6
|
## [3.28.1](https://github.com/algolia/algoliasearch-client-ruby/compare/3.28.0...3.28.1)
|
|
2
7
|
|
|
3
8
|
- [9a92b3269](https://github.com/algolia/api-clients-automation/commit/9a92b3269) chore(deps): dependencies 2025-10-13 ([#5453](https://github.com/algolia/api-clients-automation/pull/5453)) by [@algolia-bot](https://github.com/algolia-bot/)
|
data/Gemfile.lock
CHANGED
|
@@ -8,7 +8,7 @@ require "time"
|
|
|
8
8
|
module Algolia
|
|
9
9
|
module Composition
|
|
10
10
|
# Order of facet names.
|
|
11
|
-
class
|
|
11
|
+
class IndexSettingsFacets
|
|
12
12
|
# Explicit order of facets or facet values. This setting lets you always show specific facets or facet values at the top of the list.
|
|
13
13
|
attr_accessor :order
|
|
14
14
|
|
|
@@ -37,7 +37,10 @@ module Algolia
|
|
|
37
37
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
38
38
|
def initialize(attributes = {})
|
|
39
39
|
if (!attributes.is_a?(Hash))
|
|
40
|
-
raise
|
|
40
|
+
raise(
|
|
41
|
+
ArgumentError,
|
|
42
|
+
"The input argument (attributes) must be a hash in `Algolia::IndexSettingsFacets` initialize method"
|
|
43
|
+
)
|
|
41
44
|
end
|
|
42
45
|
|
|
43
46
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
@@ -45,7 +48,7 @@ module Algolia
|
|
|
45
48
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
46
49
|
raise(
|
|
47
50
|
ArgumentError,
|
|
48
|
-
"`#{k}` is not a valid attribute in `Algolia::
|
|
51
|
+
"`#{k}` is not a valid attribute in `Algolia::IndexSettingsFacets`. Please check the name to make sure it's valid. List of attributes: " +
|
|
49
52
|
self.class.attribute_map.keys.inspect
|
|
50
53
|
)
|
|
51
54
|
end
|
|
@@ -23,6 +23,9 @@ module Algolia
|
|
|
23
23
|
# Relevancy threshold below which less relevant results aren't included in the results You can only set `relevancyStrictness` on [virtual replica indices](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/in-depth/replicas/#what-are-virtual-replicas). Use this setting to strike a balance between the relevance and number of returned results.
|
|
24
24
|
attr_accessor :relevancy_strictness
|
|
25
25
|
|
|
26
|
+
# Facets for which to retrieve facet values that match the search criteria and the number of matching facet values To retrieve all facets, use the wildcard character `*`. For more information, see [facets](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/#contextual-facet-values-and-counts).
|
|
27
|
+
attr_accessor :facets
|
|
28
|
+
|
|
26
29
|
attr_accessor :facet_filters
|
|
27
30
|
|
|
28
31
|
attr_accessor :optional_filters
|
|
@@ -91,6 +94,7 @@ module Algolia
|
|
|
91
94
|
:page => :page,
|
|
92
95
|
:get_ranking_info => :getRankingInfo,
|
|
93
96
|
:relevancy_strictness => :relevancyStrictness,
|
|
97
|
+
:facets => :facets,
|
|
94
98
|
:facet_filters => :facetFilters,
|
|
95
99
|
:optional_filters => :optionalFilters,
|
|
96
100
|
:numeric_filters => :numericFilters,
|
|
@@ -124,6 +128,7 @@ module Algolia
|
|
|
124
128
|
:page => :"Integer",
|
|
125
129
|
:get_ranking_info => :"Boolean",
|
|
126
130
|
:relevancy_strictness => :"Integer",
|
|
131
|
+
:facets => :"Array<String>",
|
|
127
132
|
:facet_filters => :"FacetFilters",
|
|
128
133
|
:optional_filters => :"OptionalFilters",
|
|
129
134
|
:numeric_filters => :"NumericFilters",
|
|
@@ -198,6 +203,12 @@ module Algolia
|
|
|
198
203
|
self.relevancy_strictness = attributes[:relevancy_strictness]
|
|
199
204
|
end
|
|
200
205
|
|
|
206
|
+
if attributes.key?(:facets)
|
|
207
|
+
if (value = attributes[:facets]).is_a?(Array)
|
|
208
|
+
self.facets = value
|
|
209
|
+
end
|
|
210
|
+
end
|
|
211
|
+
|
|
201
212
|
if attributes.key?(:facet_filters)
|
|
202
213
|
self.facet_filters = attributes[:facet_filters]
|
|
203
214
|
end
|
|
@@ -309,6 +320,7 @@ module Algolia
|
|
|
309
320
|
page == other.page &&
|
|
310
321
|
get_ranking_info == other.get_ranking_info &&
|
|
311
322
|
relevancy_strictness == other.relevancy_strictness &&
|
|
323
|
+
facets == other.facets &&
|
|
312
324
|
facet_filters == other.facet_filters &&
|
|
313
325
|
optional_filters == other.optional_filters &&
|
|
314
326
|
numeric_filters == other.numeric_filters &&
|
|
@@ -348,6 +360,7 @@ module Algolia
|
|
|
348
360
|
page,
|
|
349
361
|
get_ranking_info,
|
|
350
362
|
relevancy_strictness,
|
|
363
|
+
facets,
|
|
351
364
|
facet_filters,
|
|
352
365
|
optional_filters,
|
|
353
366
|
numeric_filters,
|
|
@@ -14,8 +14,6 @@ module Algolia
|
|
|
14
14
|
# Descriptive name for the resource.
|
|
15
15
|
attr_accessor :name
|
|
16
16
|
|
|
17
|
-
attr_accessor :platform
|
|
18
|
-
|
|
19
17
|
attr_accessor :input
|
|
20
18
|
|
|
21
19
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -23,7 +21,6 @@ module Algolia
|
|
|
23
21
|
{
|
|
24
22
|
:type => :type,
|
|
25
23
|
:name => :name,
|
|
26
|
-
:platform => :platform,
|
|
27
24
|
:input => :input
|
|
28
25
|
}
|
|
29
26
|
end
|
|
@@ -33,7 +30,6 @@ module Algolia
|
|
|
33
30
|
{
|
|
34
31
|
:type => :"AuthenticationType",
|
|
35
32
|
:name => :"String",
|
|
36
|
-
:platform => :"Platform",
|
|
37
33
|
:input => :"AuthInputPartial"
|
|
38
34
|
}
|
|
39
35
|
end
|
|
@@ -41,9 +37,7 @@ module Algolia
|
|
|
41
37
|
# List of attributes with nullable: true
|
|
42
38
|
def self.openapi_nullable
|
|
43
39
|
Set.new(
|
|
44
|
-
[
|
|
45
|
-
:platform
|
|
46
|
-
]
|
|
40
|
+
[]
|
|
47
41
|
)
|
|
48
42
|
end
|
|
49
43
|
|
|
@@ -78,10 +72,6 @@ module Algolia
|
|
|
78
72
|
self.name = attributes[:name]
|
|
79
73
|
end
|
|
80
74
|
|
|
81
|
-
if attributes.key?(:platform)
|
|
82
|
-
self.platform = attributes[:platform]
|
|
83
|
-
end
|
|
84
|
-
|
|
85
75
|
if attributes.key?(:input)
|
|
86
76
|
self.input = attributes[:input]
|
|
87
77
|
end
|
|
@@ -94,7 +84,6 @@ module Algolia
|
|
|
94
84
|
self.class == other.class &&
|
|
95
85
|
type == other.type &&
|
|
96
86
|
name == other.name &&
|
|
97
|
-
platform == other.platform &&
|
|
98
87
|
input == other.input
|
|
99
88
|
end
|
|
100
89
|
|
|
@@ -107,7 +96,7 @@ module Algolia
|
|
|
107
96
|
# Calculates hash code according to all attributes.
|
|
108
97
|
# @return [Integer] Hash code
|
|
109
98
|
def hash
|
|
110
|
-
[type, name,
|
|
99
|
+
[type, name, input].hash
|
|
111
100
|
end
|
|
112
101
|
|
|
113
102
|
# Builds the object from hash
|
data/lib/algolia/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: algolia
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.
|
|
4
|
+
version: 3.29.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- https://alg.li/support
|
|
@@ -301,7 +301,6 @@ files:
|
|
|
301
301
|
- lib/algolia/models/composition/facet_hits.rb
|
|
302
302
|
- lib/algolia/models/composition/facet_ordering.rb
|
|
303
303
|
- lib/algolia/models/composition/facet_stats.rb
|
|
304
|
-
- lib/algolia/models/composition/facets.rb
|
|
305
304
|
- lib/algolia/models/composition/get_task_response.rb
|
|
306
305
|
- lib/algolia/models/composition/highlight_result.rb
|
|
307
306
|
- lib/algolia/models/composition/highlight_result_option.rb
|
|
@@ -309,6 +308,7 @@ files:
|
|
|
309
308
|
- lib/algolia/models/composition/hit_metadata.rb
|
|
310
309
|
- lib/algolia/models/composition/hit_ranking_info.rb
|
|
311
310
|
- lib/algolia/models/composition/ignore_plurals.rb
|
|
311
|
+
- lib/algolia/models/composition/index_settings_facets.rb
|
|
312
312
|
- lib/algolia/models/composition/injected_item.rb
|
|
313
313
|
- lib/algolia/models/composition/injected_item_hits_metadata.rb
|
|
314
314
|
- lib/algolia/models/composition/injected_item_metadata.rb
|