search-ruby
Installation
SKILL.md
Full-Text & Vector Search — Ruby
Prerequisites — Index must exist before querying
Create an FTS index before running text or vector queries. Use the templates as a starting point:
- FTS index: templates/fts-index-basic.json
- Vector index: templates/vector-index.json
See shared/server/search-concepts.md for setup instructions.
Full-Text Search
result = cluster.search_query(
"travel-sample-index-hotel-description",
Couchbase::SearchQuery.match("swanky"),
Couchbase::Options::Search.new { |o| o.limit = 10 }
)