Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(specs): add redirect to renderingContent #3296

Merged
merged 8 commits into from
Jul 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ public class AlgoliaSwiftGenerator extends Swift5ClientCodegen {
"redirect",
"redirectruleindexmetadata",
"redirectruleindexmetadatadata",
"redirecturl",
"region",
"removestopwords",
"removewordsifnoresults",
Expand Down
10 changes: 10 additions & 0 deletions specs/common/schemas/IndexSettings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -995,9 +995,19 @@ renderingContent:
properties:
facetOrdering:
$ref: '#/facetOrdering'
redirect:
$ref: '#/redirectURL'
x-categories:
- Advanced

redirectURL:
description: The redirect rule container.
type: object
additionalProperties: false
properties:
url:
type: string

facetOrdering:
description: Order of facet names and facet values in your UI.
type: object
Expand Down
2 changes: 1 addition & 1 deletion specs/search/common/schemas/SearchResponse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ baseSearchResponse:
title: redirect
type: object
description: |
[Redirect results to a URL](https://www.algolia.com/doc/guides/managing-results/rules/merchandising-and-promoting/how-to/redirects/).
[Redirect results to a URL](https://www.algolia.com/doc/guides/managing-results/rules/merchandising-and-promoting/how-to/redirects/), this this parameter is for internal use only.
properties:
index:
type: array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ import {
Redirect,
RedirectRuleIndexMetadata,
RedirectRuleIndexMetadataData,
RedirectURL,
RemoveStopWords,
RemoveWordsIfNoResults,
RenderingContent,
Expand Down Expand Up @@ -143,6 +144,7 @@ export {
Redirect,
RedirectRuleIndexMetadata,
RedirectRuleIndexMetadataData,
RedirectURL,
RemoveStopWords,
RemoveWordsIfNoResults,
RenderingContent,
Expand Down
Loading