Autocomplete operator

Created on 30 August 2016, over 8 years ago
Updated 28 June 2024, 6 months ago

It can be desirable for autocomplete results to use a different operator to that used for regular views results.

An example use case for this is if you were searching for articles from newspaper two of which were "The Sun" and "The Sun on Sunday". If the filter operator is set to "Contains" then typing "Sun" into the exposed filter will display both results, however when clicking on "The Sun" both results will also appear in the view, which is not ideal. If the filter operator is set to "Is equal to" then typing "Sun" into the exposed filter will display no results, which pretty much renders autocomplete useless. However if the autocomplete operator is set to "Contains" and the regular views operator is set to "Is equal to" then typing "Sun" into the exposed filter will display both results, and after clicking on "The Sun" then the view will only show results for "The Sun", perfect!

Feature request
Status

Needs review

Version

2.0

Component

Code

Created by

🇬🇧United Kingdom mustanggb Coventry, United Kingdom

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024