Company
Date Published
Author
Nic Raboy, Developer Advocate, Couchbase
Word count
934
Language
English
Hacker News points
None

Summary

Full Text Search (FTS) in Couchbase Server provides efficient and natural search capabilities by leveraging Bleve, a search and indexing library written in Golang. Unlike traditional SQL or N1QL queries with wildcards, FTS allows for fuzzy searching, ignoring minor spelling mistakes, and scoring results based on relevance. FTS supports various query types, including Match, Phrase, Fuzzy, Prefix, Regexp, Wildcard, Boolean Field, Conjunction, Disjunction, Boolean, Doc ID, Date Range, Numeric Range, Query String, and more. To utilize FTS, an index must be created within the Couchbase Administrative Dashboard, specifying document properties and mappings. The SDKs for various programming languages provide APIs to create queries, customize fields, and highlight search results with HTML markup. With FTS, developers can efficiently and naturally search through millions of records without sacrificing performance or accuracy.