Skip to main content

stripStopwords

@retinue/monorepo


@retinue/monorepo / backend/src / stripStopwords

Function: stripStopwords()

stripStopwords(query): string

Defined in: backend/src/persistence/index.ts:1513

A keyword query with its stopwords removed.

Returns the empty string when nothing survives, which callers treat as "no query" — a search for the is a search for nothing, and returning every document would be the worst possible answer.

Parameters​

query​

string

Returns​

string