text search
Finding items whose text matches a query, such as titles containing design, rather than fields equal to an exact value.
In more detail
Search has different promises from filtering: case, word splitting, punctuation and ranking all need documenting, and it can cost more than an indexed filter. Keep one parameter from silently switching between exact and fuzzy matching.
Example
GET /tasks?q=design&limit=2Related terms
- filter parameter — A query parameter that narrows a collection to members matching an exact value, such as ?state=open.
- tokenisation — In search, splitting text into the separate words or pieces that queries are matched against.
- index — A separate, sorted structure a database keeps alongside a table so it can find matching rows without reading them all.
Taught in
- Filtering And Searching — Modern API Architecture: REST, GraphQL & gRPC