@@ -82,11 +82,6 @@ import algoliasearch.recommend.SupportedLanguage._
82
82
* Whether to obtain the coordinates from the request's IP address.
83
83
* @param minimumAroundRadius
84
84
* Minimum radius (in meters) for a search around a location when `aroundRadius` isn't set.
85
- * @param insideBoundingBox
86
- * Coordinates for a rectangular area in which to search. Each bounding box is defined by the two opposite points of
87
- * its diagonal, and expressed as latitude and longitude pair: `[p1 lat, p1 long, p2 lat, p2 long]`. Provide multiple
88
- * bounding boxes as nested arrays. For more information, see [rectangular
89
- * area](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filtering-inside-rectangular-or-polygonal-areas).
90
85
* @param insidePolygon
91
86
* Coordinates of a polygon in which to search. Polygons are defined by 3 to 10,000 points. Each point is represented
92
87
* by its latitude and longitude. Provide multiple polygons as nested arrays. For more information, see [filtering
@@ -230,6 +225,9 @@ import algoliasearch.recommend.SupportedLanguage._
230
225
* `distinct` search parameter to control how many items per group are included in the search results. If you want to
231
226
* use the same attribute also for faceting, use the `afterDistinct` modifier of the `attributesForFaceting` setting.
232
227
* This applies faceting _after_ deduplication, which will result in accurate facet counts.
228
+ * @param maxFacetHits
229
+ * Maximum number of facet values to return when [searching for facet
230
+ * values](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/#search-for-facet-values).
233
231
* @param attributesToRetrieve
234
232
* Attributes to include in the API response. To reduce the size of your response, you can retrieve only some of the
235
233
* attributes. Attribute names are case-sensitive. - `*` retrieves all attributes, except attributes included in the
@@ -314,19 +312,6 @@ import algoliasearch.recommend.SupportedLanguage._
314
312
* @param advancedSyntax
315
313
* Whether to support phrase matching and excluding words from search queries. Use the `advancedSyntaxFeatures`
316
314
* parameter to control which feature is supported.
317
- * @param optionalWords
318
- * Words that should be considered optional when found in the query. By default, records must match all words in the
319
- * search query to be included in the search results. Adding optional words can help to increase the number of search
320
- * results by running an additional search query that doesn't include the optional words. For example, if the search
321
- * query is \"action video\" and \"video\" is an optional word, the search engine runs two queries. One for \"action
322
- * video\" and one for \"action\". Records that match all words are ranked higher. For a search query with 4 or more
323
- * words **and** all its words are optional, the number of matched words required for a record to be included in the
324
- * search results increases for every 1,000 records: - If `optionalWords` has less than 10 words, the required number
325
- * of matched words increases by 1: results 1 to 1,000 require 1 matched word, results 1,001 to 2000 need 2 matched
326
- * words. - If `optionalWords` has 10 or more words, the number of required matched words increases by the number of
327
- * optional words divided by 5 (rounded down). For example, with 18 optional words: results 1 to 1,000 require 1
328
- * matched word, results 1,001 to 2000 need 4 matched words. For more information, see [Optional
329
- * words](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/empty-or-insufficient-results/#creating-a-list-of-optional-words).
330
315
* @param disableExactOnAttributes
331
316
* Searchable attributes for which you want to [turn off the Exact ranking
332
317
* criterion](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/override-search-engine-defaults/in-depth/adjust-exact-settings/#turn-off-exact-for-some-attributes).
@@ -366,9 +351,6 @@ import algoliasearch.recommend.SupportedLanguage._
366
351
* these properties: `message`, `warning`, `cursor`, `serverUsed`, `indexUsed`, `abTestVariantID`, `parsedQuery`, or
367
352
* any property triggered by the `getRankingInfo` parameter. Don't exclude properties that you might need in your
368
353
* search UI.
369
- * @param maxFacetHits
370
- * Maximum number of facet values to return when [searching for facet
371
- * values](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/#search-for-facet-values).
372
354
* @param maxValuesPerFacet
373
355
* Maximum number of facet values to return for each facet.
374
356
* @param sortFacetValuesBy
@@ -402,7 +384,7 @@ case class FallbackParams(
402
384
aroundRadius : Option [AroundRadius ] = scala.None ,
403
385
aroundPrecision : Option [AroundPrecision ] = scala.None ,
404
386
minimumAroundRadius : Option [Int ] = scala.None ,
405
- insideBoundingBox : Option [Seq [ Seq [ Double ]] ] = scala.None ,
387
+ insideBoundingBox : Option [InsideBoundingBox ] = scala.None ,
406
388
insidePolygon : Option [Seq [Seq [Double ]]] = scala.None ,
407
389
naturalLanguages : Option [Seq [SupportedLanguage ]] = scala.None ,
408
390
ruleContexts : Option [Seq [String ]] = scala.None ,
@@ -433,6 +415,7 @@ case class FallbackParams(
433
415
userData : Option [Any ] = scala.None ,
434
416
customNormalization : Option [Map [String , Map [String , String ]]] = scala.None ,
435
417
attributeForDistinct : Option [String ] = scala.None ,
418
+ maxFacetHits : Option [Int ] = scala.None ,
436
419
attributesToRetrieve : Option [Seq [String ]] = scala.None ,
437
420
ranking : Option [Seq [String ]] = scala.None ,
438
421
relevancyStrictness : Option [Int ] = scala.None ,
@@ -456,7 +439,7 @@ case class FallbackParams(
456
439
queryType : Option [QueryType ] = scala.None ,
457
440
removeWordsIfNoResults : Option [RemoveWordsIfNoResults ] = scala.None ,
458
441
advancedSyntax : Option [Boolean ] = scala.None ,
459
- optionalWords : Option [Seq [ String ] ] = scala.None ,
442
+ optionalWords : Option [OptionalWords ] = scala.None ,
460
443
disableExactOnAttributes : Option [Seq [String ]] = scala.None ,
461
444
exactOnSingleWordQuery : Option [ExactOnSingleWordQuery ] = scala.None ,
462
445
alternativesAsExact : Option [Seq [AlternativesAsExact ]] = scala.None ,
@@ -465,7 +448,6 @@ case class FallbackParams(
465
448
replaceSynonymsInHighlight : Option [Boolean ] = scala.None ,
466
449
minProximity : Option [Int ] = scala.None ,
467
450
responseFields : Option [Seq [String ]] = scala.None ,
468
- maxFacetHits : Option [Int ] = scala.None ,
469
451
maxValuesPerFacet : Option [Int ] = scala.None ,
470
452
sortFacetValuesBy : Option [String ] = scala.None ,
471
453
attributeCriteriaComputedByMinProximity : Option [Boolean ] = scala.None ,
0 commit comments