Files
716d43a9a8 Nuxt 3 migration (#4342)
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>
2026-01-22 10:27:19 +01:00

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
}