algolia 3.3.2 → 3.3.3
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/api/ingestion_client.rb +0 -95
- data/lib/algolia/models/recommend/bought_together_query.rb +1 -1
- data/lib/algolia/models/recommend/facet_ordering.rb +1 -1
- data/lib/algolia/models/recommend/fallback_params.rb +228 -143
- data/lib/algolia/models/recommend/{facets.rb → index_settings_facets.rb} +6 -3
- data/lib/algolia/models/recommend/looking_similar_query.rb +1 -1
- data/lib/algolia/models/recommend/{search_params.rb → recommend_search_params.rb} +234 -146
- data/lib/algolia/models/recommend/recommended_for_you_query.rb +1 -1
- data/lib/algolia/models/recommend/related_query.rb +1 -1
- data/lib/algolia/models/recommend/trending_facets_query.rb +1 -1
- data/lib/algolia/models/recommend/trending_items_query.rb +2 -2
- data/lib/algolia/version.rb +1 -1
- metadata +4 -11
- data/lib/algolia/models/ingestion/generate_transformation_code_payload.rb +0 -233
- data/lib/algolia/models/ingestion/generate_transformation_code_response.rb +0 -211
- data/lib/algolia/models/ingestion/model.rb +0 -254
- data/lib/algolia/models/ingestion/transformation_models.rb +0 -216
- data/lib/algolia/models/recommend/mode.rb +0 -32
- data/lib/algolia/models/recommend/search_params_object.rb +0 -1197
- data/lib/algolia/models/recommend/semantic_search.rb +0 -217
@@ -6,7 +6,7 @@ require "time"
|
|
6
6
|
module Algolia
|
7
7
|
module Recommend
|
8
8
|
# Order of facet names.
|
9
|
-
class
|
9
|
+
class IndexSettingsFacets
|
10
10
|
# Explicit order of facets or facet values. This setting lets you always show specific facets or facet values at the top of the list.
|
11
11
|
attr_accessor :order
|
12
12
|
|
@@ -40,7 +40,10 @@ module Algolia
|
|
40
40
|
# @param [Hash] attributes Model attributes in the form of hash
|
41
41
|
def initialize(attributes = {})
|
42
42
|
if (!attributes.is_a?(Hash))
|
43
|
-
raise
|
43
|
+
raise(
|
44
|
+
ArgumentError,
|
45
|
+
"The input argument (attributes) must be a hash in `Algolia::IndexSettingsFacets` initialize method"
|
46
|
+
)
|
44
47
|
end
|
45
48
|
|
46
49
|
# check to see if the attribute exists and convert string to symbol for hash key
|
@@ -48,7 +51,7 @@ module Algolia
|
|
48
51
|
if (!self.class.attribute_map.key?(k.to_sym))
|
49
52
|
raise(
|
50
53
|
ArgumentError,
|
51
|
-
"`#{k}` is not a valid attribute in `Algolia::
|
54
|
+
"`#{k}` is not a valid attribute in `Algolia::IndexSettingsFacets`. Please check the name to make sure it's valid. List of attributes: " +
|
52
55
|
self.class.attribute_map.keys.inspect
|
53
56
|
)
|
54
57
|
end
|
@@ -48,7 +48,7 @@ module Algolia
|
|
48
48
|
:index_name => :"String",
|
49
49
|
:threshold => :"Float",
|
50
50
|
:max_recommendations => :"Integer",
|
51
|
-
:query_parameters => :"
|
51
|
+
:query_parameters => :"RecommendSearchParams",
|
52
52
|
:model => :"LookingSimilarModel",
|
53
53
|
:object_id => :"String",
|
54
54
|
:fallback_parameters => :"FallbackParams"
|