mirror of
https://github.com/baserow/baserow.git
synced 2026-12-04 08:18:42 +00:00
Update the nuxt3 version. Co-authored-by: Jonathan Adeline <jonathan@baserow.io> Co-authored-by: Bram Wiepjes <bramw@protonmail.com> Co-authored-by: Cezary <cezary@baserow.io> Co-authored-by: Tsering Paljor <tsering@baserow.io> Co-authored-by: Przemyslaw Kukulski <przemyslaw+gh@baserow.io> Co-authored-by: Bram <bram2w@users.noreply.github.com>
17 lines
663 B
JavaScript
17 lines
663 B
JavaScript
export const SearchMode = {
|
|
// Use this mode to search rows using LIKE operators against each
|
|
// field type, and return an accurate `count` in the response.
|
|
// This method is slow after a few thousand rows and dozens of fields.
|
|
COMPAT: 'compat',
|
|
// Use this mode to search rows using Postgres full-text search against
|
|
// each field type, and provide a `count` in the response. This
|
|
// method is much faster as tables grow in size.
|
|
FT_WITH_COUNT: 'full-text-with-count',
|
|
}
|
|
|
|
export function getDefaultSearchModeFromEnv($config) {
|
|
return $config.public.baserowUsePgFulltextSearch === 'true'
|
|
? SearchMode.FT_WITH_COUNT
|
|
: SearchMode.COMPAT
|
|
}
|