Keywords (Search Form) - AFS

AFS Integration Guide

Product
AFS
AFS_Version
7.9
Category
Reference Guide

This widget displays and handles the AFS search form.

It looks like this by default:

<div class="AFSWidget" title="Keywords">
</div>

Keywords - Display the search form

Parameter

Type (Card)

Default

Description

searchLabel

String (O)

Search (EN)

Rechercher (FR)

The label displayed before the search field

advancedSearchLabel

String (O)

Advanced Search (EN)

Recherche avancée (FR)

The label displayed before the advanced search fields

buttonLabel

String (O)

Search (EN)

Rechercher (FR)

The label displayed in the submit button

placeholder

String (O)

N/A

Explanatory text displayed in the search field when it is empty and does not have the focus. It is aimed to help user know what to enter.

acp

Object (O)

N/A

switchToNormalLabel

String (O)

"Search"

Label of the button to switch to the normal search mode.

switchToAdvancedLabel

String (O)

"Advanced search"

Label of the button to switch to the advanced search mode.

target

String (O)

N/A

The results page where search requests will be executed and processed.

autofocus

boolean (O)

false

Indicates if the search field has to be focused by default.

instantSearch

boolean (O)

false

Indicates if the request has to be launch when user is typing.

This widget becomes a composite one if mode parameter is set to CUSTOM. See Composite mechanism for more information.

When this widget becomes a composite one, it takes its components declaration inside its body. See Keywords Components for available components.

With instantSearch option enabled, results will be found only when an entire word is written. Configuring AFS to use a wildcard search may be required, but can cause some performance issues depending on the size of the corpus.

A slightly different behavior of instantSearch can also be set using ACP. See ACP Subobject.