Releases API now supports filtering by title
A new title[match] query operator has been added to the Releases query API, allowing users to search for releases by their given title using the same full text search semantics described in the Delivery API reference.
Full text search allows users to filter releases using a combination of phrase search and term search, where phrase search will look for an exact match of the quoted string (e.g. searching for "this phrase" will not match this other phrase) and term search will look for titles matching all of the keywords in any order.
For example, a user may have the following releases containing content for their upcoming campaigns:
- "2021-08 EU Surprise sale"
- "2021-08 SA Surprise sale"
- "2021-08 US Surprise sale"
- "2021-11 EU Cyber Monday"
- "2021-11 US Black Friday"
- "2021-11 US Cyber Monday"
- "2022-07 US Surprise Cyber Sale"
Using full text search, a user could find all relevant releases for the August surprise sale by using title[match]=2021-08 "Surprise sale"[1] , which can be read as "find all releases with a title that contains 2021-08 and also contains the exact phrase "Surprise sale".
Querying releases by title is available to all Management API users along with contentful-management.js API client users today.
Learn more about releases in the Contentful Management API reference
[1] when URI encoded this will actually look like "title%5Bmatch%5D=2021-08%20%22Surprise%20sale%22"