sqlitesearch

package
v1.45.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2026 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Overview

Package sqlitesearch provides SQLite text functions for API search.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSONText

func JSONText(value string) string

JSONText normalizes JSON whitespace and object-key order for text filters. A fragment that is not a complete document stays unchanged.

func NewDriver

func NewDriver() *sqlite.Driver

NewDriver returns a SQLite driver with the text functions used by pdbcompat search. Functions belong to this driver, not a global registry.

func Tokens

func Tokens(value string) string

Tokens covers common standard-analyzer word boundaries. It keeps internal apostrophes, dots and connector punctuation, and separates Han, hiragana and katakana from adjacent Latin text. Full Lucene Unicode word-break and emoji rules remain a registered divergence.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL