# Global Search ES Queries (v1)

Source of truth:
- Service: `app/Services/Elasticsearch/GlobalSearchElasticsearchService.php`
- Controller: `app/Http/Controllers/GlobalSearchController.php`
- Index: `customer_subscription_v1`

## ES-backed service methods
- `searchTransactions(...)`

## API endpoint
- `GET /global-search-data` (`type=transaction` path is ES-backed)

## Notes
- Pagination/count are produced from ES response in the service path.
- Customer id uses fallback normalization chain (root -> alternate root -> nested order value).
- Date/status compatibility includes both order-level and nested subscription-level fields.
