Company
Date Published
Author
Simon Basle, Software Engineer, Pivotal
Word count
2054
Language
English
Hacker News points
None

Summary

Couchbase 4.5 introduces an experimental full-text search (FTS) feature in its Java SDK, leveraging the open-source Bleve project to enable sophisticated text indexing and searching capabilities. This feature, accessible via the 2.2.4 Java SDK client, simplifies the search process by integrating directly within Couchbase, eliminating the need for external connectors for basic needs. Through a variety of query types—including fuzzy, match phrase, regular expression, prefix, numeric range, and date queries—users can execute complex searches directly on Couchbase indices. The Java API for FTS follows a builder pattern, allowing developers to construct and execute queries with methods like `query(SearchQuery ftq)`, and provides options for combining queries using conjunctions, disjunctions, and boolean parameters. Additionally, developers can gain insights into query scoring and matching by using the explanation feature within search results. This release aims to streamline search processes for developers working with Couchbase, offering a preview of its capabilities ahead of further development.