@algolia/recommend 5.0.0-alpha.106 → 5.0.0-alpha.107

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.
Files changed (121) hide show
  1. package/dist/model/anchoring.d.ts +1 -1
  2. package/dist/model/aroundPrecision.d.ts +1 -1
  3. package/dist/model/aroundPrecisionFromValueInner.d.ts +9 -0
  4. package/dist/model/aroundPrecisionFromValueInner.d.ts.map +1 -1
  5. package/dist/model/aroundRadius.d.ts +1 -1
  6. package/dist/model/aroundRadiusAll.d.ts +3 -0
  7. package/dist/model/aroundRadiusAll.d.ts.map +1 -1
  8. package/dist/model/automaticFacetFilter.d.ts +4 -4
  9. package/dist/model/automaticFacetFilters.d.ts +1 -1
  10. package/dist/model/baseRecommendRequest.d.ts +1 -1
  11. package/dist/model/baseRecommendationsQuery.d.ts +1 -1
  12. package/dist/model/baseRecommendedForYouQueryParameters.d.ts +1 -1
  13. package/dist/model/baseSearchParamsWithoutQuery.d.ts +24 -28
  14. package/dist/model/baseSearchParamsWithoutQuery.d.ts.map +1 -1
  15. package/dist/model/baseSearchResponse.d.ts +6 -6
  16. package/dist/model/clientMethodProps.d.ts +6 -6
  17. package/dist/model/condition.d.ts +7 -3
  18. package/dist/model/condition.d.ts.map +1 -1
  19. package/dist/model/consequence.d.ts +5 -5
  20. package/dist/model/consequenceHide.d.ts +2 -2
  21. package/dist/model/consequenceQuery.d.ts +1 -1
  22. package/dist/model/consequenceQueryObject.d.ts +2 -2
  23. package/dist/model/deletedAtResponse.d.ts +1 -1
  24. package/dist/model/distinct.d.ts +1 -1
  25. package/dist/model/edit.d.ts +1 -1
  26. package/dist/model/exactOnSingleWordQuery.d.ts +1 -1
  27. package/dist/model/facetFilters.d.ts +1 -1
  28. package/dist/model/facetOrdering.d.ts +2 -2
  29. package/dist/model/facets.d.ts +2 -2
  30. package/dist/model/highlightResultOption.d.ts +3 -3
  31. package/dist/model/ignorePlurals.d.ts +1 -1
  32. package/dist/model/indexSettingsAsSearchParams.d.ts +30 -34
  33. package/dist/model/indexSettingsAsSearchParams.d.ts.map +1 -1
  34. package/dist/model/matchLevel.d.ts +1 -1
  35. package/dist/model/mode.d.ts +1 -1
  36. package/dist/model/numericFilters.d.ts +1 -1
  37. package/dist/model/optionalFilters.d.ts +1 -1
  38. package/dist/model/params.d.ts +1 -1
  39. package/dist/model/promoteObjectID.d.ts +2 -2
  40. package/dist/model/promoteObjectIDs.d.ts +2 -2
  41. package/dist/model/queryType.d.ts +1 -1
  42. package/dist/model/rankingInfo.d.ts +10 -7
  43. package/dist/model/rankingInfo.d.ts.map +1 -1
  44. package/dist/model/reRankingApplyFilter.d.ts +1 -1
  45. package/dist/model/recommendHit.d.ts +3 -3
  46. package/dist/model/recommendationsHits.d.ts +1 -1
  47. package/dist/model/removeStopWords.d.ts +1 -1
  48. package/dist/model/removeWordsIfNoResults.d.ts +1 -1
  49. package/dist/model/renderingContent.d.ts +1 -1
  50. package/dist/model/searchParamsQuery.d.ts +1 -1
  51. package/dist/model/searchRecommendRulesParams.d.ts +2 -2
  52. package/dist/model/searchRecommendRulesResponse.d.ts +3 -3
  53. package/dist/model/semanticSearch.d.ts +2 -2
  54. package/dist/model/snippetResultOption.d.ts +2 -2
  55. package/dist/model/sortRemainingBy.d.ts +1 -1
  56. package/dist/model/tagFilters.d.ts +1 -1
  57. package/dist/model/taskStatus.d.ts +1 -1
  58. package/dist/model/typoTolerance.d.ts +1 -1
  59. package/dist/model/typoToleranceEnum.d.ts +3 -0
  60. package/dist/model/typoToleranceEnum.d.ts.map +1 -1
  61. package/dist/model/value.d.ts +1 -1
  62. package/dist/recommend.cjs +7 -7
  63. package/dist/recommend.esm.browser.js +7 -7
  64. package/dist/recommend.esm.node.js +7 -7
  65. package/dist/recommend.umd.js +2 -2
  66. package/dist/src/recommendClient.d.ts +7 -7
  67. package/model/anchoring.ts +1 -1
  68. package/model/aroundPrecision.ts +1 -1
  69. package/model/aroundPrecisionFromValueInner.ts +9 -0
  70. package/model/aroundRadius.ts +1 -1
  71. package/model/aroundRadiusAll.ts +3 -0
  72. package/model/automaticFacetFilter.ts +4 -4
  73. package/model/automaticFacetFilters.ts +1 -1
  74. package/model/baseRecommendRequest.ts +1 -1
  75. package/model/baseRecommendationsQuery.ts +1 -1
  76. package/model/baseRecommendedForYouQueryParameters.ts +1 -1
  77. package/model/baseSearchParamsWithoutQuery.ts +24 -29
  78. package/model/baseSearchResponse.ts +6 -6
  79. package/model/clientMethodProps.ts +6 -6
  80. package/model/condition.ts +8 -3
  81. package/model/consequence.ts +5 -5
  82. package/model/consequenceHide.ts +2 -2
  83. package/model/consequenceQuery.ts +1 -1
  84. package/model/consequenceQueryObject.ts +2 -2
  85. package/model/deletedAtResponse.ts +1 -1
  86. package/model/distinct.ts +1 -1
  87. package/model/edit.ts +1 -1
  88. package/model/exactOnSingleWordQuery.ts +1 -1
  89. package/model/facetFilters.ts +1 -1
  90. package/model/facetOrdering.ts +2 -2
  91. package/model/facets.ts +2 -2
  92. package/model/highlightResultOption.ts +3 -3
  93. package/model/ignorePlurals.ts +1 -1
  94. package/model/indexSettingsAsSearchParams.ts +30 -35
  95. package/model/matchLevel.ts +1 -1
  96. package/model/mode.ts +1 -1
  97. package/model/numericFilters.ts +1 -1
  98. package/model/optionalFilters.ts +1 -1
  99. package/model/params.ts +1 -1
  100. package/model/promoteObjectID.ts +2 -2
  101. package/model/promoteObjectIDs.ts +2 -2
  102. package/model/queryType.ts +1 -1
  103. package/model/rankingInfo.ts +10 -7
  104. package/model/reRankingApplyFilter.ts +1 -1
  105. package/model/recommendHit.ts +3 -3
  106. package/model/recommendationsHits.ts +1 -1
  107. package/model/removeStopWords.ts +1 -1
  108. package/model/removeWordsIfNoResults.ts +1 -1
  109. package/model/renderingContent.ts +1 -1
  110. package/model/searchParamsQuery.ts +1 -1
  111. package/model/searchRecommendRulesParams.ts +2 -2
  112. package/model/searchRecommendRulesResponse.ts +3 -3
  113. package/model/semanticSearch.ts +2 -2
  114. package/model/snippetResultOption.ts +2 -2
  115. package/model/sortRemainingBy.ts +1 -1
  116. package/model/tagFilters.ts +1 -1
  117. package/model/taskStatus.ts +1 -1
  118. package/model/typoTolerance.ts +1 -1
  119. package/model/typoToleranceEnum.ts +3 -0
  120. package/model/value.ts +1 -1
  121. package/package.json +7 -7
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Whether the pattern parameter matches the beginning (`startsWith`) or end (`endsWith`) of the query string, is an exact match (`is`), or a partial match (`contains`).
2
+ * Which part of the search query the pattern should match: - `startsWith`. The pattern must match the begginning of the query. - `endsWith`. The pattern must match the end of the query. - `is`. The pattern must match the query exactly. - `contains`. The pattern must match anywhere in the query. Empty queries are only allowed as pattern with `anchoring: is`.
3
3
  */
4
4
  export type Anchoring = 'contains' | 'endsWith' | 'is' | 'startsWith';
5
5
  //# sourceMappingURL=anchoring.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import type { AroundPrecisionFromValueInner } from './aroundPrecisionFromValueInner';
2
2
  /**
3
- * Precision of a geographical search (in meters), to [group results that are more or less the same distance from a central point](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/in-depth/geo-ranking-precision/).
3
+ * Precision of a coordinate-based search in meters to group results with similar distances. The Geo ranking criterion considers all matches within the same range of distances to be equal.
4
4
  */
5
5
  export type AroundPrecision = AroundPrecisionFromValueInner[] | number;
6
6
  //# sourceMappingURL=aroundPrecision.d.ts.map
@@ -1,5 +1,14 @@
1
+ /**
2
+ * Range object with lower and upper values in meters to define custom ranges.
3
+ */
1
4
  export type AroundPrecisionFromValueInner = {
5
+ /**
6
+ * Lower boundary of a range in meters. The Geo ranking criterion considers all records within the range to be equal.
7
+ */
2
8
  from?: number;
9
+ /**
10
+ * Upper boundary of a range in meters. The Geo ranking criterion considers all records within the range to be equal.
11
+ */
3
12
  value?: number;
4
13
  };
5
14
  //# sourceMappingURL=aroundPrecisionFromValueInner.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"aroundPrecisionFromValueInner.d.ts","sourceRoot":"","sources":["../../model/aroundPrecisionFromValueInner.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,6BAA6B,GAAG;IAC1C,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC"}
1
+ {"version":3,"file":"aroundPrecisionFromValueInner.d.ts","sourceRoot":"","sources":["../../model/aroundPrecisionFromValueInner.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG;IAC1C;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import type { AroundRadiusAll } from './aroundRadiusAll';
2
2
  /**
3
- * [Maximum radius](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#increase-the-search-radius) for a geographical search (in meters).
3
+ * Maximum radius for a search around a central location. This parameter works in combination with the `aroundLatLng` and `aroundLatLngViaIP` parameters. By default, the search radius is determined automatically from the density of hits around the central location. The search radius is small if there are many hits close to the central coordinates.
4
4
  */
5
5
  export type AroundRadius = AroundRadiusAll | number;
6
6
  //# sourceMappingURL=aroundRadius.d.ts.map
@@ -1,2 +1,5 @@
1
+ /**
2
+ * Return all records with a valid `_geoloc` attribute. Don\'t filter by distance.
3
+ */
1
4
  export type AroundRadiusAll = 'all';
2
5
  //# sourceMappingURL=aroundRadiusAll.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"aroundRadiusAll.d.ts","sourceRoot":"","sources":["../../model/aroundRadiusAll.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,eAAe,GAAG,KAAK,CAAC"}
1
+ {"version":3,"file":"aroundRadiusAll.d.ts","sourceRoot":"","sources":["../../model/aroundRadiusAll.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,KAAK,CAAC"}
@@ -1,17 +1,17 @@
1
1
  /**
2
- * Automatic facet Filter.
2
+ * Filter or optional filter to be applied to the search.
3
3
  */
4
4
  export type AutomaticFacetFilter = {
5
5
  /**
6
- * Attribute to filter on. This must match a facet placeholder in the Rule\'s pattern.
6
+ * Facet name to be applied as filter. The name must match placeholders in the `pattern` parameter. For example, with `pattern: {facet:genre}`, `automaticFacetFilters` must be `genre`.
7
7
  */
8
8
  facet: string;
9
9
  /**
10
- * Score for the filter. Typically used for optional or disjunctive filters.
10
+ * Filter scores to give different weights to individual filters.
11
11
  */
12
12
  score?: number;
13
13
  /**
14
- * Whether the filter is disjunctive (true) or conjunctive (false).
14
+ * Whether the filter is disjunctive or conjunctive. If true the filter has multiple matches, multiple occurences are combined with the logical `OR` operation. If false, multiple occurences are combined with the logical `AND` operation.
15
15
  */
16
16
  disjunctive?: boolean;
17
17
  };
@@ -1,6 +1,6 @@
1
1
  import type { AutomaticFacetFilter } from './automaticFacetFilter';
2
2
  /**
3
- * Names of facets to which automatic filtering must be applied; they must match the facet name of a facet value placeholder in the query pattern.
3
+ * Filter to be applied to the search. You can use this to respond to search queries that match a facet value. For example, if users search for \"comedy\", which matches a facet value of the \"genre\" facet, you can filter the results to show the top-ranked comedy movies.
4
4
  */
5
5
  export type AutomaticFacetFilters = AutomaticFacetFilter[] | string[];
6
6
  //# sourceMappingURL=automaticFacetFilters.d.ts.map
@@ -1,6 +1,6 @@
1
1
  export type BaseRecommendRequest = {
2
2
  /**
3
- * Algolia index name.
3
+ * Index name.
4
4
  */
5
5
  indexName: string;
6
6
  /**
@@ -3,7 +3,7 @@ import type { SearchParamsObject } from './searchParamsObject';
3
3
  export type BaseRecommendationsQuery = {
4
4
  model: RecommendationModels;
5
5
  /**
6
- * Unique object identifier.
6
+ * Unique record identifier.
7
7
  */
8
8
  objectID: string;
9
9
  queryParameters?: SearchParamsObject;
@@ -1,6 +1,6 @@
1
1
  export type BaseRecommendedForYouQueryParameters = {
2
2
  /**
3
- * Associates a [user token](https://www.algolia.com/doc/guides/sending-events/concepts/usertoken/) with the current search.
3
+ * Unique pseudonymous or anonymous user identifier. This helps with analytics and click and conversion events. For more information, see [user token](https://www.algolia.com/doc/guides/sending-events/concepts/usertoken/).
4
4
  */
5
5
  userToken: string;
6
6
  };
@@ -6,11 +6,11 @@ import type { OptionalFilters } from './optionalFilters';
6
6
  import type { TagFilters } from './tagFilters';
7
7
  export type BaseSearchParamsWithoutQuery = {
8
8
  /**
9
- * Overrides the query parameter and performs a more generic search.
9
+ * Keywords to be used instead of the search query to conduct a more broader search. Using the `similarQuery` parameter changes other settings: - `queryType` is set to `prefixNone`. - `removeStopWords` is set to true. - `words` is set as the first ranking criterion. - All remaining words are treated as `optionalWords`. Since the `similarQuery` is supposed to do a broad search, they usually return many results. Combine it with `filters` to narrow down the list of results.
10
10
  */
11
11
  similarQuery?: string;
12
12
  /**
13
- * [Filter](https://www.algolia.com/doc/guides/managing-results/refine-results/filtering/) the query with numeric, facet, or tag filters.
13
+ * Filter the search so that only records with matching values are included in the results. These filters are supported: - **Numeric filters.** `<facet> <op> <number>`, where `<op>` is one of `<`, `<=`, `=`, `!=`, `>`, `>=`. - **Ranges.** `<facet>:<lower> TO <upper>` where `<lower>` and `<upper>` are the lower and upper limits of the range (inclusive). - **Facet filters.** `<facet>:<value>` where `<facet>` is a facet attribute (case-sensitive) and `<value>` a facet value. - **Tag filters.** `_tags:<value>` or just `<value>` (case-sensitive). - **Boolean filters.** `<facet>: true | false`. You can combine filters with `AND`, `OR`, and `NOT` operators with the following restrictions: - You can only combine filters of the same type with `OR`. **Not supported:** `facet:value OR num > 3`. - You can\'t use `NOT` with combinations of filters. **Not supported:** `NOT(facet:value OR facet:value)` - You can\'t combine conjunctions (`AND`) with `OR`. **Not supported:** `facet:value OR (facet:value AND facet:value)` Use quotes around your filters, if the facet attribute name or facet value has spaces, keywords (`OR`, `AND`, `NOT`), or quotes. If a facet attribute is an array, the filter matches if it matches at least one element of the array. For more information, see [Filters](https://www.algolia.com/doc/guides/managing-results/refine-results/filtering/).
14
14
  */
15
15
  filters?: string;
16
16
  facetFilters?: FacetFilters;
@@ -18,89 +18,85 @@ export type BaseSearchParamsWithoutQuery = {
18
18
  numericFilters?: NumericFilters;
19
19
  tagFilters?: TagFilters;
20
20
  /**
21
- * Determines how to calculate [filter scores](https://www.algolia.com/doc/guides/managing-results/refine-results/filtering/in-depth/filter-scoring/#accumulating-scores-with-sumorfiltersscores). If `false`, maximum score is kept. If `true`, score is summed.
21
+ * Whether to sum all filter scores. If true, all filter scores are summed. Otherwise, the maximum filter score is kept. For more information, see [filter scores](https://www.algolia.com/doc/guides/managing-results/refine-results/filtering/in-depth/filter-scoring/#accumulating-scores-with-sumorfiltersscores).
22
22
  */
23
23
  sumOrFiltersScores?: boolean;
24
24
  /**
25
- * Restricts a query to only look at a subset of your [searchable attributes](https://www.algolia.com/doc/guides/managing-results/must-do/searchable-attributes/).
25
+ * Restricts a search to a subset of your searchable attributes.
26
26
  */
27
27
  restrictSearchableAttributes?: string[];
28
28
  /**
29
- * Returns [facets](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/#contextual-facet-values-and-counts), their facet values, and the number of matching facet values.
29
+ * 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).
30
30
  */
31
31
  facets?: string[];
32
32
  /**
33
- * Forces faceting to be applied after [de-duplication](https://www.algolia.com/doc/guides/managing-results/refine-results/grouping/) (with the distinct feature). Alternatively, the `afterDistinct` [modifier](https://www.algolia.com/doc/api-reference/api-parameters/attributesForFaceting/#modifiers) of `attributesForFaceting` allows for more granular control.
33
+ * Whether faceting should be applied after deduplication with `distinct`. This leads to accurate facet counts when using faceting in combination with `distinct`. It\'s usually better to use `afterDistinct` modifiers in the `attributesForFaceting` setting, as `facetingAfterDistinct` only computes correct facet counts if all records have the same facet values for the `attributeForDistinct`.
34
34
  */
35
35
  facetingAfterDistinct?: boolean;
36
36
  /**
37
- * Page to retrieve (the first page is `0`, not `1`).
37
+ * Page of search results to retrieve.
38
38
  */
39
39
  page?: number;
40
40
  /**
41
- * Specifies the offset of the first hit to return. > **Note**: Using `page` and `hitsPerPage` is the recommended method for [paging results](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/pagination/js/). However, you can use `offset` and `length` to implement [an alternative approach to paging](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/pagination/js/#retrieving-a-subset-of-records-with-offset-and-length).
41
+ * Position of the first hit to retrieve.
42
42
  */
43
43
  offset?: number;
44
44
  /**
45
- * Sets the number of hits to retrieve (for use with `offset`). > **Note**: Using `page` and `hitsPerPage` is the recommended method for [paging results](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/pagination/js/). However, you can use `offset` and `length` to implement [an alternative approach to paging](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/pagination/js/#retrieving-a-subset-of-records-with-offset-and-length).
45
+ * Number of hits to retrieve (used in combination with `offset`).
46
46
  */
47
47
  length?: number;
48
48
  /**
49
- * Search for entries [around a central location](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filter-around-a-central-point), enabling a geographical search within a circular area.
49
+ * Coordinates for the center of a circle, expressed as a comma-separated string of latitude and longitude. Only records included within circle around this central location are included in the results. The radius of the circle is determined by the `aroundRadius` and `minimumAroundRadius` settings. This parameter is ignored if you also specify `insidePolygon` or `insideBoundingBox`.
50
50
  */
51
51
  aroundLatLng?: string;
52
52
  /**
53
- * Search for entries around a location. The location is automatically computed from the requester\'s IP address.
53
+ * Whether to obtain the coordinates from the request\'s IP address.
54
54
  */
55
55
  aroundLatLngViaIP?: boolean;
56
56
  aroundRadius?: AroundRadius;
57
57
  aroundPrecision?: AroundPrecision;
58
58
  /**
59
- * Minimum radius (in meters) used for a geographical search when `aroundRadius` isn\'t set.
59
+ * Minimum radius (in meters) for a search around a location when `aroundRadius` isn\'t set.
60
60
  */
61
61
  minimumAroundRadius?: number;
62
62
  /**
63
- * Search inside a [rectangular area](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filtering-inside-rectangular-or-polygonal-areas) (in geographical coordinates).
63
+ * Coordinates for a rectangular area in which to search. Each bounding box is defined by the two opposite points of its diagonal, and expressed as latitude and longitude pair: `[p1 lat, p1 long, p2 lat, p2 long]`. Provide multiple bounding boxes as nested arrays. For more information, see [rectangular area](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filtering-inside-rectangular-or-polygonal-areas).
64
64
  */
65
65
  insideBoundingBox?: number[][];
66
66
  /**
67
- * Search inside a [polygon](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filtering-inside-rectangular-or-polygonal-areas) (in geographical coordinates).
67
+ * Coordinates of a polygon in which to search. Polygons are defined by 3 to 10,000 points. Each point is represented by its latitude and longitude. Provide multiple polygons as nested arrays. For more information, see [filtering inside polygons](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filtering-inside-rectangular-or-polygonal-areas). This parameter is ignored, if you also specify `insideBoundingBox`.
68
68
  */
69
69
  insidePolygon?: number[][];
70
70
  /**
71
- * Changes the default values of parameters that work best for a natural language query, such as `ignorePlurals`, `removeStopWords`, `removeWordsIfNoResults`, `analyticsTags`, and `ruleContexts`. These parameters work well together when the query consists of fuller natural language strings instead of keywords, for example when processing voice search queries.
71
+ * ISO language codes that adjust settings that are useful for processing natural language queries (as opposed to keyword searches): - Sets `removeStopWords` and `ignorePlurals` to the list of provided languages. - Sets `removeWordsIfNoResults` to `allOptional`. - Adds a `natural_language` attribute to `ruleContexts` and `analyticsTags`.
72
72
  */
73
73
  naturalLanguages?: string[];
74
74
  /**
75
- * Assigns [rule contexts](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/how-to/customize-search-results-by-platform/#whats-a-context) to search queries.
75
+ * Assigns a rule context to the search query. [Rule contexts](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/how-to/customize-search-results-by-platform/#whats-a-context) are strings that you can use to trigger matching rules.
76
76
  */
77
77
  ruleContexts?: string[];
78
78
  /**
79
- * Defines how much [Personalization affects results](https://www.algolia.com/doc/guides/personalization/personalizing-results/in-depth/configuring-personalization/#understanding-personalization-impact).
79
+ * Impact that Personalization should have on this search. The higher this value is, the more Personalization determines the ranking compared to other factors. For more information, see [Understanding Personalization impact](https://www.algolia.com/doc/guides/personalization/personalizing-results/in-depth/configuring-personalization/#understanding-personalization-impact).
80
80
  */
81
81
  personalizationImpact?: number;
82
82
  /**
83
- * Associates a [user token](https://www.algolia.com/doc/guides/sending-events/concepts/usertoken/) with the current search.
83
+ * Unique pseudonymous or anonymous user identifier. This helps with analytics and click and conversion events. For more information, see [user token](https://www.algolia.com/doc/guides/sending-events/concepts/usertoken/).
84
84
  */
85
85
  userToken?: string;
86
86
  /**
87
- * Incidates whether the search response includes [detailed ranking information](https://www.algolia.com/doc/guides/building-search-ui/going-further/backend-search/in-depth/understanding-the-api-response/#ranking-information).
87
+ * Whether the search response should include detailed ranking information.
88
88
  */
89
89
  getRankingInfo?: boolean;
90
90
  /**
91
- * Enriches the API\'s response with information about how the query was processed.
92
- */
93
- explain?: string[];
94
- /**
95
- * Whether to take into account an index\'s synonyms for a particular search.
91
+ * Whether to take into account an index\'s synonyms for this search.
96
92
  */
97
93
  synonyms?: boolean;
98
94
  /**
99
- * Indicates whether a query ID parameter is included in the search response. This is required for [tracking click and conversion events](https://www.algolia.com/doc/guides/sending-events/concepts/event-types/#events-related-to-algolia-requests).
95
+ * Whether to include a `queryID` attribute in the response. The query ID is a unique identifier for a search query and is required for tracking [click and conversion events](https://www.algolia.com/guides/sending-events/getting-started/).
100
96
  */
101
97
  clickAnalytics?: boolean;
102
98
  /**
103
- * Indicates whether this query will be included in [analytics](https://www.algolia.com/doc/guides/search-analytics/guides/exclude-queries/).
99
+ * Whether this search will be included in Analytics.
104
100
  */
105
101
  analytics?: boolean;
106
102
  /**
@@ -108,11 +104,11 @@ export type BaseSearchParamsWithoutQuery = {
108
104
  */
109
105
  analyticsTags?: string[];
110
106
  /**
111
- * Whether to include or exclude a query from the processing-time percentile computation.
107
+ * Whether to include this search when calculating processing-time percentiles.
112
108
  */
113
109
  percentileComputation?: boolean;
114
110
  /**
115
- * Incidates whether this search will be considered in A/B testing.
111
+ * Whether to enable A/B testing for this search.
116
112
  */
117
113
  enableABTest?: boolean;
118
114
  };
@@ -1 +1 @@
1
- {"version":3,"file":"baseSearchParamsWithoutQuery.d.ts","sourceRoot":"","sources":["../../model/baseSearchParamsWithoutQuery.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,MAAM,MAAM,4BAA4B,GAAG;IACzC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,YAAY,CAAC,EAAE,YAAY,CAAC;IAE5B,eAAe,CAAC,EAAE,eAAe,CAAC;IAElC,cAAc,CAAC,EAAE,cAAc,CAAC;IAEhC,UAAU,CAAC,EAAE,UAAU,CAAC;IAExB;;OAEG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B;;OAEG;IACH,4BAA4B,CAAC,EAAE,MAAM,EAAE,CAAC;IAExC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAElB;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAEhC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAE5B,YAAY,CAAC,EAAE,YAAY,CAAC;IAE5B,eAAe,CAAC,EAAE,eAAe,CAAC;IAElC;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC;IAE/B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC;IAE3B;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAE5B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IAExB;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAE/B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IAEnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IAEzB;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAEhC;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC"}
1
+ {"version":3,"file":"baseSearchParamsWithoutQuery.d.ts","sourceRoot":"","sources":["../../model/baseSearchParamsWithoutQuery.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,MAAM,MAAM,4BAA4B,GAAG;IACzC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,YAAY,CAAC,EAAE,YAAY,CAAC;IAE5B,eAAe,CAAC,EAAE,eAAe,CAAC;IAElC,cAAc,CAAC,EAAE,cAAc,CAAC;IAEhC,UAAU,CAAC,EAAE,UAAU,CAAC;IAExB;;OAEG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B;;OAEG;IACH,4BAA4B,CAAC,EAAE,MAAM,EAAE,CAAC;IAExC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAElB;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAEhC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAE5B,YAAY,CAAC,EAAE,YAAY,CAAC;IAE5B,eAAe,CAAC,EAAE,eAAe,CAAC;IAElC;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC;IAE/B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC;IAE3B;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAE5B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IAExB;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAE/B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IAEzB;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAEhC;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC"}
@@ -16,7 +16,7 @@ export type BaseSearchResponse = Record<string, any> & {
16
16
  */
17
17
  aroundLatLng?: string;
18
18
  /**
19
- * Automatically-computed radius.
19
+ * Distance from a central coordinate provided by `aroundLatLng`.
20
20
  */
21
21
  automaticRadius?: string;
22
22
  exhaustive?: Exhaustive;
@@ -33,7 +33,7 @@ export type BaseSearchResponse = Record<string, any> & {
33
33
  */
34
34
  exhaustiveTypo?: boolean;
35
35
  /**
36
- * Mapping of each facet name to the corresponding facet counts.
36
+ * Facet counts.
37
37
  */
38
38
  facets?: Record<string, Record<string, number>>;
39
39
  /**
@@ -57,11 +57,11 @@ export type BaseSearchResponse = Record<string, any> & {
57
57
  */
58
58
  message?: string;
59
59
  /**
60
- * Number of hits the search query matched.
60
+ * Number of results (hits).
61
61
  */
62
62
  nbHits: number;
63
63
  /**
64
- * Number of pages of results for the current query.
64
+ * Number of pages of results.
65
65
  */
66
66
  nbPages: number;
67
67
  /**
@@ -69,7 +69,7 @@ export type BaseSearchResponse = Record<string, any> & {
69
69
  */
70
70
  nbSortedHits?: number;
71
71
  /**
72
- * Page to retrieve (the first page is `0`, not `1`).
72
+ * Page of search results to retrieve.
73
73
  */
74
74
  page: number;
75
75
  /**
@@ -99,7 +99,7 @@ export type BaseSearchResponse = Record<string, any> & {
99
99
  */
100
100
  serverUsed?: string;
101
101
  /**
102
- * Lets you store custom data in your indices.
102
+ * An object with custom data. You can store up to 32&nbsp;kB as custom data.
103
103
  */
104
104
  userData?: any | null;
105
105
  /**
@@ -65,7 +65,7 @@ export type CustomPutProps = {
65
65
  */
66
66
  export type DeleteRecommendRuleProps = {
67
67
  /**
68
- * Index on which to perform the request.
68
+ * Name of the index on which to perform the operation.
69
69
  */
70
70
  indexName: string;
71
71
  /**
@@ -73,7 +73,7 @@ export type DeleteRecommendRuleProps = {
73
73
  */
74
74
  model: RecommendModels;
75
75
  /**
76
- * Unique record (object) identifier.
76
+ * Unique record identifier.
77
77
  */
78
78
  objectID: string;
79
79
  };
@@ -82,7 +82,7 @@ export type DeleteRecommendRuleProps = {
82
82
  */
83
83
  export type GetRecommendRuleProps = {
84
84
  /**
85
- * Index on which to perform the request.
85
+ * Name of the index on which to perform the operation.
86
86
  */
87
87
  indexName: string;
88
88
  /**
@@ -90,7 +90,7 @@ export type GetRecommendRuleProps = {
90
90
  */
91
91
  model: RecommendModels;
92
92
  /**
93
- * Unique record (object) identifier.
93
+ * Unique record identifier.
94
94
  */
95
95
  objectID: string;
96
96
  };
@@ -99,7 +99,7 @@ export type GetRecommendRuleProps = {
99
99
  */
100
100
  export type GetRecommendStatusProps = {
101
101
  /**
102
- * Index on which to perform the request.
102
+ * Name of the index on which to perform the operation.
103
103
  */
104
104
  indexName: string;
105
105
  /**
@@ -116,7 +116,7 @@ export type GetRecommendStatusProps = {
116
116
  */
117
117
  export type SearchRecommendRulesProps = {
118
118
  /**
119
- * Index on which to perform the request.
119
+ * Name of the index on which to perform the operation.
120
120
  */
121
121
  indexName: string;
122
122
  /**
@@ -1,17 +1,21 @@
1
1
  import type { Anchoring } from './anchoring';
2
2
  export type Condition = {
3
3
  /**
4
- * Query pattern syntax.
4
+ * Query pattern that triggers the rule. You can use either a literal string, or a special pattern `{facet:ATTRIBUTE}`, where `ATTRIBUTE` is a facet name. The rule is triggered if the query matches the literal string or a value of the specified facet. For example, with `pattern: {facet:genre}`, the rule is triggered when users search for a genre, such as \"comedy\".
5
5
  */
6
6
  pattern?: string;
7
7
  anchoring?: Anchoring;
8
8
  /**
9
- * Whether the pattern matches on plurals, synonyms, and typos.
9
+ * Whether the pattern should match plurals, synonyms, and typos.
10
10
  */
11
11
  alternatives?: boolean;
12
12
  /**
13
- * Rule context format: [A-Za-z0-9_-]+).
13
+ * An additional restriction that only triggers the rule, when the search has the same value as `ruleContexts` parameter. For example, if `context: mobile`, the rule is only triggered when the search request has a matching `ruleContexts: mobile`. A rule context must only contain alphanumeric characters.
14
14
  */
15
15
  context?: string;
16
+ /**
17
+ * Filters that trigger the rule. You can add add filters using the syntax `facet:value` so that the rule is triggered, when the specific filter is selected. You can use `filters` on its own or combine it with the `pattern` parameter.
18
+ */
19
+ filters?: string;
16
20
  };
17
21
  //# sourceMappingURL=condition.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"condition.d.ts","sourceRoot":"","sources":["../../model/condition.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,MAAM,MAAM,SAAS,GAAG;IACtB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,SAAS,CAAC,EAAE,SAAS,CAAC;IAEtB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC"}
1
+ {"version":3,"file":"condition.d.ts","sourceRoot":"","sources":["../../model/condition.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,MAAM,MAAM,SAAS,GAAG;IACtB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,SAAS,CAAC,EAAE,SAAS,CAAC;IAEtB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC"}
@@ -2,24 +2,24 @@ import type { ConsequenceHide } from './consequenceHide';
2
2
  import type { ConsequenceParams } from './consequenceParams';
3
3
  import type { Promote } from './promote';
4
4
  /**
5
- * [Consequences](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/#consequences) of a rule.
5
+ * Effect of the rule. For more information, see [Consequences](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/#consequences).
6
6
  */
7
7
  export type Consequence = {
8
8
  params?: ConsequenceParams;
9
9
  /**
10
- * Records to promote.
10
+ * Records you want to pin to a specific position in the search results. You can promote up to 300 records, either individually, or as groups of up to 100 records each.
11
11
  */
12
12
  promote?: Promote[];
13
13
  /**
14
- * Only use in combination with the `promote` consequence. When `true`, promoted results will be restricted to match the filters of the current search. When `false`, the promoted results will show up regardless of the filters.
14
+ * Whether promoted records must match an active filter for the consequence to be applied. This ensures that user actions (filtering the search) are given a higher precendence. For example, if you promote a record with the `color: red` attribute, and the user filters the search for `color: blue`, the \"red\" record won\'t be shown.
15
15
  */
16
16
  filterPromotes?: boolean;
17
17
  /**
18
- * Records to hide. By default, you can hide up to 50 records per rule.
18
+ * Records you want to hide from the search results.
19
19
  */
20
20
  hide?: ConsequenceHide[];
21
21
  /**
22
- * Custom JSON object that will be appended to the userData array in the response. This object isn\'t interpreted by the API. It\'s limited to 1kB of minified JSON.
22
+ * A JSON object with custom data that will be appended to the `userData` array in the response. This object isn\'t interpreted by the API and is limited to 1&nbsp;kB of minified JSON.
23
23
  */
24
24
  userData?: any | null;
25
25
  };
@@ -1,9 +1,9 @@
1
1
  /**
2
- * Unique identifier of the record to hide.
2
+ * Object ID of the record to hide.
3
3
  */
4
4
  export type ConsequenceHide = {
5
5
  /**
6
- * Unique object identifier.
6
+ * Unique record identifier.
7
7
  */
8
8
  objectID: string;
9
9
  };
@@ -1,6 +1,6 @@
1
1
  import type { ConsequenceQueryObject } from './consequenceQueryObject';
2
2
  /**
3
- * When providing a string, it replaces the entire query string. When providing an object, it describes incremental edits to be made to the query string (but you can\'t do both).
3
+ * Replace or edit the search query. If `consequenceQuery` is a string, the entire search query is replaced with that string. If `consequenceQuery` is an object, it describes incremental edits made to the query.
4
4
  */
5
5
  export type ConsequenceQuery = ConsequenceQueryObject | string;
6
6
  //# sourceMappingURL=consequenceQuery.d.ts.map
@@ -1,11 +1,11 @@
1
1
  import type { Edit } from './edit';
2
2
  export type ConsequenceQueryObject = {
3
3
  /**
4
- * Words to remove.
4
+ * Words to remove from the search query.
5
5
  */
6
6
  remove?: string[];
7
7
  /**
8
- * Edits to apply.
8
+ * Changes to make to the search query.
9
9
  */
10
10
  edits?: Edit[];
11
11
  };
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export type DeletedAtResponse = {
5
5
  /**
6
- * Unique identifier of a task. A successful API response means that a task was added to a queue. It might not run immediately. You can check the task\'s progress with the `task` operation and this `taskID`.
6
+ * Unique identifier of a task. A successful API response means that a task was added to a queue. It might not run immediately. You can check the task\'s progress with the [`task` operation](#tag/Indices/operation/getTask) and this `taskID`.
7
7
  */
8
8
  taskID: number;
9
9
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Enables [deduplication or grouping of results (Algolia\'s _distinct_ feature](https://www.algolia.com/doc/guides/managing-results/refine-results/grouping/#introducing-algolias-distinct-feature)).
2
+ * Determines how many records of a group are included in the search results. Records with the same value for the `attributeForDistinct` attribute are considered a group. The `distinct` setting controls how many members of the group are returned. This is useful for [deduplication and grouping](https://www.algolia.com/doc/guides/managing-results/refine-results/grouping/#introducing-algolias-distinct-feature). The `distinct` setting is ignored if `attributeForDistinct` is not set.
3
3
  */
4
4
  export type Distinct = boolean | number;
5
5
  //# sourceMappingURL=distinct.d.ts.map
@@ -6,7 +6,7 @@ export type Edit = {
6
6
  */
7
7
  delete?: string;
8
8
  /**
9
- * Text that should be inserted in place of the removed text inside the query string.
9
+ * Text to be added in place of the deleted text inside the query string.
10
10
  */
11
11
  insert?: string;
12
12
  };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Determines how the [Exact ranking 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) is computed when the query contains only one word.
2
+ * Determines how the [Exact ranking 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) is computed when the search query has only one word. <dl> <dt><code>attribute</code></dt> <dd> The Exact ranking criterion is 1 if the query word and attribute value are the same. For example, a search for \"road\" will match the value \"road\", but not \"road trip\". </dd> <dt><code>none</code></dt> <dd> The Exact ranking criterion is ignored on single-word searches. </dd> <dt><code>word</code></dt> <dd> The Exact ranking criterion is 1 if the query word is found in the attribute value. The query word must have at least 3 characters and must not be a stop word. </dd> </dl> If `exactOnSingleWordQuery` is `word`, only exact matches will be highlighted, partial and prefix matches won\'t.
3
3
  */
4
4
  export type ExactOnSingleWordQuery = 'attribute' | 'none' | 'word';
5
5
  //# sourceMappingURL=exactOnSingleWordQuery.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import type { MixedSearchFilters } from './mixedSearchFilters';
2
2
  /**
3
- * [Filter hits by facet value](https://www.algolia.com/doc/api-reference/api-parameters/facetFilters/).
3
+ * Filter the search by facet values, so that only records with the same facet values are retrieved. **Prefer using the `filters` parameter, which supports all filter types and combinations with boolean operators.** - `[filter1, filter2]` is interpreted as `filter1 AND filter2`. - `[[filter1, filter2], filter3]` is interpreted as `filter1 OR filter2 AND filter3`. - `facet:-value` is interpreted as `NOT facet:value`. While it\'s best to avoid attributes that start with a `-`, you can still filter them by escaping with a backslash: `facet:\\-value`.
4
4
  */
5
5
  export type FacetFilters = MixedSearchFilters[] | string;
6
6
  //# sourceMappingURL=facetFilters.d.ts.map
@@ -1,12 +1,12 @@
1
1
  import type { Facets } from './facets';
2
2
  import type { Value } from './value';
3
3
  /**
4
- * Defines the ordering of facets (widgets).
4
+ * Order of facet names and facet values in your UI.
5
5
  */
6
6
  export type FacetOrdering = {
7
7
  facets?: Facets;
8
8
  /**
9
- * Ordering of facet values within an individual facet.
9
+ * Order of facet values. One object for each facet.
10
10
  */
11
11
  values?: Record<string, Value>;
12
12
  };
@@ -1,9 +1,9 @@
1
1
  /**
2
- * Ordering of facets (widgets).
2
+ * Order of facet names.
3
3
  */
4
4
  export type Facets = {
5
5
  /**
6
- * Pinned order of facet lists.
6
+ * Explicit order of facets or facet values. This setting lets you always show specific facets or facet values at the top of the list.
7
7
  */
8
8
  order?: string[];
9
9
  };
@@ -1,15 +1,15 @@
1
1
  import type { MatchLevel } from './matchLevel';
2
2
  /**
3
- * Show highlighted section and words matched on a query.
3
+ * Surround words that match the query with HTML tags for highlighting.
4
4
  */
5
5
  export type HighlightResultOption = {
6
6
  /**
7
- * Markup text with `facetQuery` matches highlighted.
7
+ * Highlighted attribute value, including HTML tags.
8
8
  */
9
9
  value: string;
10
10
  matchLevel: MatchLevel;
11
11
  /**
12
- * List of words from the query that matched the object.
12
+ * List of matched words from the search query.
13
13
  */
14
14
  matchedWords: string[];
15
15
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Treats singular, plurals, and other forms of declensions as matching terms. `ignorePlurals` is used in conjunction with the `queryLanguages` setting. _list_: language ISO codes for which ignoring plurals should be enabled. This list will override any values that you may have set in `queryLanguages`. _true_: enables the ignore plurals feature, where singulars and plurals are considered equivalent (\"foot\" = \"feet\"). The languages supported here are either [every language](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/supported-languages/) (this is the default) or those set by `queryLanguages`. _false_: turns off the ignore plurals feature, so that singulars and plurals aren\'t considered to be the same (\"foot\" will not find \"feet\").
2
+ * Treat singular, plurals, and other forms of declensions as equivalent. You should only use this feature for the languages used in your index.
3
3
  */
4
4
  export type IgnorePlurals = string[] | boolean;
5
5
  //# sourceMappingURL=ignorePlurals.d.ts.map