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 ¶
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 ¶
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.