Skip to main content
Skip table of contents

Autocomplete component

Preamble

The search of separate words in content displayed in autocompletes in Awery was changed from old format using the “@“ symbol to “space” divider.

Main Logic

Autocompletes in system use different data sources. All displayed fields for one line in the list are called “title“. Once the text is entered in autocomplete the search mechanism starts to filter data based on next rules.

The inserted content is compared for complete match in every field one by one. If any results with full match are found, only they will be displayed in search results

If there are no results by full match, the entered text will be splitted in separate words based on “space“ devider and search will continue by attempt of full matching each word in entered text with any field in the “title“ and will return results where at least one word from search line matches at least one field in title of record.

Example

Demo Operator is search line entered in autocomplete

Returning 3 results where search string fully matches the name or is part of the name

image-20250429-091351.png

In case the search line found the full match in one of fields (name in this example) the search results by separate words are not displayed

image-20250429-091627.png

In case there is no direct match in one field, search applied by separate words in label and found the result with search words in name + the onewith search word in name and other in country

image-20250429-091852.png

In case searching by separate words, returned result where match of every search word found at least in one label word

image-20250429-092124.png

Exclusions

Currently only airport selector has the custom rules for search. These rules differ from the described above logic for content search in other autocompletes throughout the system

image-20250429-092214.png

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.