API: utils/queries
better-web-search-mcp / utils/queries
utils/queries#
Functions#
expandQueries()#
expandQueries(
question):string[]
Defined in: src/utils/queries.ts:66
Parameters#
| Parameter | Type |
|---|---|
question | string |
Returns#
string[]
variantKey()#
variantKey(
query):string
Defined in: src/utils/queries.ts:60
A comparison key that ignores differences no search engine cares about.
Case, punctuation and a trailing plural are all collapsed, so “… Type R review” and “… Type R reviews” reduce to the same key. Without this the expander emitted both, spending a provider call and a rank slot on a query that returns the same page twice.
Parameters#
| Parameter | Type |
|---|---|
query | string |
Returns#
string