title: 'Full-Text Search' sidebar_label: 'Full-text Search' description: 'Learn how Spice can perform full text search' sidebar_position: 2 tags:
Spice provides full text search functionality with BM25 scoring. Datasets can be augmented with a full-text search index that enables efficient search. Dataset columns are included in the full-text index based on the column configuration. For example:
Search results (from v1/search) will retrieve results based on the keyword similarity of fields title & body. For more details, see the API reference for /v1/search.
The full text search index can also be used to perform search in SQL, via a user-defined table function (UDTF).
The function signature of text_search is