Summary
The invoice search endpoint should rank results with a title match higher than a description-only match. An integration test should seed invoices where the query appears in different fields and confirm the ranking order.
Scope
- Seed invoice A with the query in the title, invoice B with the query only in the description
- Call the search endpoint and assert invoice A appears before invoice B
- Seed invoice C with the query in both title and description and assert it ranks at or above invoice A
- Assert a query matching no invoices returns an empty array
- Assert the search is case-insensitive
Acceptance Criteria
ETA: 12 hours
Coordinate on Telegram
Summary
The invoice search endpoint should rank results with a title match higher than a description-only match. An integration test should seed invoices where the query appears in different fields and confirm the ranking order.
Scope
Acceptance Criteria
ETA: 12 hours
Coordinate on Telegram