Files
bookhoard/bruno/media-items/Exact Match With Quotes.yml
T
john-okeefe fc617c3e46 docs: update Bruno collection with unified search endpoints
- Update Search All Libraries.yml with expanded documentation
- Add Fuzzy Author Filter.yml (author_filter=asimov example)
- Add Fuzzy Genre Filter.yml (genre_filter=scifi example)
- Add Combined Search and Filters.yml (q=foundation&author_filter=asimov example)
- Add Exact Match With Quotes.yml (q="Foundation and Empire" example)
- Add Field Values Search - Authors.yml (autocomplete dropdown example)
- Add Field Values Search - Genres.yml (autocomplete dropdown example)
- Add Field Values Search - Series.yml (autocomplete dropdown example)
- Add Field Values Search - Languages.yml (autocomplete dropdown example)
- Remove deprecated Filter Media Items.yml scenario

All files include request config, params, examples, expected responses, and success criteria for API interaction during development.
2026-03-23 22:38:28 -04:00

81 lines
2.1 KiB
YAML

info:
name: Exact Match With Quotes
type: http
seq: 1
http:
method: GET
url: "{{base_url}}/api/media-items/search"
params:
- name: library_id
value: "{{library_id}}"
type: query
disabled: false
- name: q
value: "\"Foundation and Empire\""
type: query
disabled: false
auth: inherit
settings:
encodeUrl: true
timeout: 0
followRedirects: true
maxRedirects: 5
docs: |-
## Exact Match With Quotes
Searches for an exact phrase match by wrapping the query in double quotes.
**Method:** GET
**Endpoint:** /api/media-items/search
**Authentication:** Required (Bearer token)
**Query Parameters:**
- `library_id` (string, required): Library UUID to search within
- `q` (string, required): Exact phrase to match (must be wrapped in double quotes)
**How Exact Match Works:**
- Wrap query in double quotes: `"\"exact phrase\""`
- Uses ILIKE pattern matching with wildcards
- Case-insensitive
- Must match the exact phrase (no fuzzy matching)
- Searches in: title, author, series, tags, contributors
**Fuzzy vs Exact Match:**
- Fuzzy (default): `asimov` → Matches "Asimov, Isaac", "Foundation and Asimov"
- Exact (with quotes): `"\"Asimov, Isaac\""` → Matches ONLY "Asimov, Isaac"
**Response:** HTTP 200 (OK)
```json
[
{
"id": "uuid",
"title": "Foundation and Empire",
"author": "Asimov, Isaac",
"library_id": "uuid",
"library_name": "E-Books"
}
]
```
**Examples:**
- `q="\"Foundation and Empire\""` → Only "Foundation and Empire" (not "Foundation")
- `q="\"The Hobbit\""` → Only "The Hobbit" (not "The Hobbit: There and Back Again")
- `q="\"J.R.R. Tolkien\""` → Only exact author name match
**When to Use Exact Match:**
- Searching for exact book titles in a series
- Finding specific edition or version
- Exact author name matching
- Preventing false positives from similar terms
**Success Criteria:**
- Status: 200
- Returns items with exact phrase match
- No fuzzy matching applied
- Case-insensitive but must match exactly otherwise