You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
1.2 KiB
Markdown
28 lines
1.2 KiB
Markdown
# Generic Search Slice Test Plan
|
|
|
|
This patch adds a minimal but useful integration-test baseline for the new generic search slices.
|
|
|
|
## What is covered
|
|
|
|
- PostgreSQL full-text search over `DOC.doc_text_representation.search_vector`
|
|
- PostgreSQL trigram search over document title / summary / representation text
|
|
- hybrid orchestration and document-level collapse
|
|
- representation selection modes (`PRIMARY_ONLY`, `PRIMARY_AND_CHUNKS`)
|
|
- REST endpoint smoke tests for:
|
|
- `POST /api/search`
|
|
- `POST /api/search/debug`
|
|
- `GET /api/search/metrics`
|
|
|
|
## Recommended execution order
|
|
|
|
1. Apply the search-slice DB migration(s) or ensure the runtime schema already contains the lexical search columns.
|
|
2. Run the new integration tests with PostgreSQL Testcontainers.
|
|
3. Start the application locally and try the included Postman requests.
|
|
4. Only after lexical tests are green, add semantic engine integration tests.
|
|
|
|
## Notes
|
|
|
|
- The test application intentionally imports only the DOC domain services and lexical search beans.
|
|
- Semantic/vector beans are left out to keep the test context small and deterministic.
|
|
- The base test class adds the `search_config` and `search_vector` columns if they are not already present.
|