-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(specs): remove cross-specs references (#3412)
- Loading branch information
Showing
11 changed files
with
109 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
matchedGeoLocation: | ||
type: object | ||
properties: | ||
lat: | ||
type: number | ||
format: double | ||
description: Latitude of the matched location. | ||
lng: | ||
type: number | ||
format: double | ||
description: Longitude of the matched location. | ||
distance: | ||
type: integer | ||
description: Distance between the matched location and the search location (in meters). | ||
|
||
personalization: | ||
type: object | ||
properties: | ||
filtersScore: | ||
type: integer | ||
description: The score of the filters. | ||
rankingScore: | ||
type: integer | ||
description: The score of the ranking. | ||
score: | ||
type: integer | ||
description: The score of the event. | ||
|
||
rankingInfo: | ||
type: object | ||
description: Object with detailed information about the record's ranking. | ||
additionalProperties: false | ||
properties: | ||
filters: | ||
type: integer | ||
minimum: 0 | ||
description: Whether a filter matched the query. | ||
firstMatchedWord: | ||
type: integer | ||
minimum: 0 | ||
description: Position of the first matched word in the best matching attribute of the record. | ||
geoDistance: | ||
type: integer | ||
minimum: 0 | ||
description: Distance between the geo location in the search query and the best matching geo location in the record, divided by the geo precision (in meters). | ||
geoPrecision: | ||
type: integer | ||
minimum: 1 | ||
description: Precision used when computing the geo distance, in meters. | ||
matchedGeoLocation: | ||
$ref: '#/matchedGeoLocation' | ||
personalization: | ||
$ref: '#/personalization' | ||
nbExactWords: | ||
type: integer | ||
minimum: 0 | ||
description: Number of exactly matched words. | ||
nbTypos: | ||
type: integer | ||
minimum: 0 | ||
description: Number of typos encountered when matching the record. | ||
promoted: | ||
type: boolean | ||
description: Whether the record was promoted by a rule. | ||
proximityDistance: | ||
type: integer | ||
minimum: 0 | ||
description: Number of words between multiple matches in the query plus 1. For single word queries, `proximityDistance` is 0. | ||
userScore: | ||
type: integer | ||
description: Overall ranking of the record, expressed as a single integer. This attribute is internal. | ||
words: | ||
type: integer | ||
minimum: 1 | ||
description: Number of matched words. | ||
promotedByReRanking: | ||
type: boolean | ||
description: Whether the record is re-ranked. | ||
required: | ||
- nbTypos | ||
- firstMatchedWord | ||
- geoDistance | ||
- nbExactWords | ||
- userScore | ||
|
||
distinctSeqID: | ||
type: integer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
context: | ||
type: string | ||
pattern: '[A-Za-z0-9_-]+' | ||
description: | | ||
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. | ||
example: mobile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters