springboot-search

Add PostgreSQL tsvector/tsquery full-text search to Spring Boot apps.

Updated Mar 29, 2026
One-click install
npx skills add https://github.com/chartsai/member-system-cc-skills --skill springboot-search
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: springboot-search
Source: https://github.com/chartsai/member-system-cc-skills/tree/main/springboot-search
Command: npx skills add https://github.com/chartsai/member-system-cc-skills --skill springboot-search

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides an end-to-end approach to adding fast, PostgreSQL-backed full-text search to a Spring Boot membership application. It eliminates manual wiring for search indexes, queries, and UI, offering a cohesive workflow from migrations to UI search results.

Core Features & Use Cases

  • Integrates PostgreSQL tsvector/tsquery-based full-text search across core modules (members, content, announcements) with optional module support.
  • Generates migrations to add search vectors, GIN indexes, and triggers; updates JPA entities and repositories; and exposes a centralized SearchService plus a REST/Thymeleaf UI.
  • Provides a header search bar and a dedicated /search page with results grouped by entity type and a typeahead API for autocomplete.
  • Handles CJK considerations with pg_trgm guidance and language-specific tokenization notes to maintain search quality.
  • Configurable through the existing Spring config and supports secure access rules for admin vs. user results.

Quick Start

Install Claude Code and run the springboot-search skill to scaffold PostgreSQL full-text search in your Spring Boot app.

Frequently Asked Questions about springboot-search

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add PostgreSQL full-text search to a Spring Boot application?

PostgreSQL full-text search in a Spring Boot app is added using tsvector and tsquery to generate search vectors, GIN indexes, and triggers, exposing fast relevant results through a centralized SearchService and REST or Thymeleaf UI.

Can I use Spring Boot JPA repositories to query PostgreSQL tsvector columns?

Yes, Spring Boot JPA repositories can query PostgreSQL tsvector columns by updating entity mappings and repository search methods to leverage generated search vectors and GIN indexes for full-text search retrieval.

What's the best way to implement autocomplete typeahead search in Spring Boot with PostgreSQL?

Autocomplete typeahead search in Spring Boot with PostgreSQL is implemented by exposing a typeahead API endpoint from the centralized SearchService, utilizing tsquery matching against indexed tsvector columns for fast prefix suggestions.

Does PostgreSQL full-text search support CJK languages like Chinese and Japanese in Spring Boot?

PostgreSQL full-text search handles CJK languages in Spring Boot using pg_trgm guidance and language-specific tokenization notes to maintain search quality for Chinese, Japanese, and Korean text queries.

How do I secure Spring Boot search results to separate admin and user access?

Spring Boot search results are secured for admin versus user access by applying configurable secure access rules within the search controller and SearchService, filtering returned members, content, and announcements based on user roles.

Do I need Elasticsearch for full-text search in Spring Boot or is PostgreSQL sufficient?

PostgreSQL is sufficient for Spring Boot full-text search without Elasticsearch, using native tsvector and tsquery with GIN indexes to deliver fast, relevant results across members, content, and announcements with deterministic migrations.