queryterm

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package queryterm holds the query-side vocabulary rules that both ways of searching this graph have to agree on: the full-text query built for the database, and the term list the fallback scan matches nodes against. A word dropped by one and kept by the other makes the two tools disagree about what the searcher asked for.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DropFunctionWords

func DropFunctionWords(tokens []string) []string

DropFunctionWords removes meaningless words from a query's terms, and gives up when that would leave nothing. @intent stop one unremarkable English word from deciding which results a query returns. @domainRule a query made only of function words keeps every term, so it stays answerable.

func IsFunctionWord

func IsFunctionWord(term string) bool

IsFunctionWord reports whether a term is one of the meaningless words. @intent let a caller judge one term without copying the list.

Types

This section is empty.

Jump to

Keyboard shortcuts

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