Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

search

display the search results

Layout

Conditional Layout narrative:

  1. Normal search results (with or without auto-correction)

  2. Sub-phrases results (with several groups of results each matching a sub-part of the search query)

  3. No results (with a block of personalized recommendations to avoid showing a fully empty page)

...

Used Layout Blocks

...

titleJSON Schema
Code Block
languagejson
{
  "title": "Banner",
  "type": "object",
  "properties": {
    "title": {
      "type": "object",
      "title": "Title",
      "properties": {
        "de": {
          "type": "string",
          "description": "value for German"
        },
        "fr": {
          "type": "string",
          "description": "value for French"
        }
      }
    },
    "img_desktop": {
      "type": "object",
      "title": "Desktop Image (path)",
      "properties": {
        "de": {
          "type": "string",
          "description": "path for German"
        },
        "fr": {
          "type": "string",
          "description": "path for French"
        }
      }
    },
    "img_mobile": {
      "type": "object",
      "title": "Mobile Image (path)",
      "properties": {
        "de": {
          "type": "string",
          "description": "path for German"
        },
        "fr": {
          "type": "string",
          "description": "path for French"
        }
      }
    },
    "text_html": {
      "type": "object",
      "title": "Text",
      "properties": {
        "de": {
          "type": "string",
          "format": "html",
          "options": {
            "wysiwyg": true
          },
          "description": "html text for German"
        },
        "fr": {
          "type": "string",
          "format": "html",
          "options": {
            "wysiwyg": true
          },
          "description": "html text for French"
        }
      }
    },
    "text_color": {
      "title": "Text color",
      "type": "string",
      "format": "color",
      "description": "Color for the text (use hex format like #ff0000, If empty, default color)"
    },
    "text_alignment": {
      "title": "Text alignment",
      "type": "string",
      "enum": [
        "left",
        "center",
        "right"
      ],
      "description": "Text position"
    },
    "button_label": {
      "type": "object",
      "title": "Button Label",
      "properties": {
        "de": {
          "type": "string",
          "description": "value for German"
        },
        "fr": {
          "type": "string",
          "description": "value for French"
        }
      }
    },
    "button_color": {
      "title": "Button color",
      "type": "string",
      "format": "color",
      "description": "Color for the text (use hex format like #ff0000, If empty, default color)"
    },
    "fine_print": {
      "type": "object",
      "title": "Fine print",
      "description": "Desktop positioning lower end / Mobile : out of the banner below",
      "properties": {
        "de": {
          "type": "string",
          "description": "value for German"
        },
        "fr": {
          "type": "string",
          "description": "value for French"
        }
      }
    },
    "link": {
      "type": "object",
      "title": "Banner target (URL)",
      "properties": {
        "de": {
          "type": "string",
          "description": "target URL in German"
        },
        "fr": {
          "type": "string",
          "description": "target URL in French"
        }
      }
    },
    "accessor": {
      "type": "string",
      "description": "hits accessor (typically leave empty)"
    }
  }
}

Complete search:

...

Include Page
search - JSON - Shema
search - JSON - Shema

autocomplete

Include Page
autocomplete - JSON Shema
autocomplete - JSON Shema