Skip to content

Commit 87857dc

Browse files
committed
Add similar parameter to search/byterm
https://podcastindex.social/@dave/110548705233703606
1 parent 7def3e9 commit 87857dc

File tree

5 files changed

+28
-16
lines changed

5 files changed

+28
-16
lines changed

Postman Docs/PodcastIndex.postman_collection.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,12 @@
109109
"description": "If present, only non-explicit feeds will be returned. Meaning, feeds where the `itunes:explicit` flag is set to `false`.\n\nParameter shall not have a value\n",
110110
"disabled": true
111111
},
112+
{
113+
"key": "similar",
114+
"value": "",
115+
"description": "If present, include similar matches in search response. For `search/byterm`, prioritizes title matches.\n",
116+
"disabled": true
117+
},
112118
{
113119
"key": "fulltext",
114120
"value": "",
@@ -124,7 +130,7 @@
124130
{
125131
"key": "similar",
126132
"value": "",
127-
"description": "If present, include similar matches in search response\n",
133+
"description": "If present, include similar matches in search response. For `search/byterm`, prioritizes title matches.\n",
128134
"disabled": true
129135
}
130136
]

api_src/components/parameters/similar.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: similar
22
in: query
33
# language=Markdown
44
description: >
5-
If present, include similar matches in search response
5+
If present, include similar matches in search response. For `search/byterm`, prioritizes title matches.
66
schema:
77
type: boolean
88
allowEmptyValue: true

api_src/paths/search/byterm.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ get:
1717
- $ref: '../../components/parameters/max.yaml'
1818
- $ref: '../../components/parameters/aponly.yaml'
1919
- $ref: '../../components/parameters/clean.yaml'
20+
- $ref: '../../components/parameters/similar.yaml'
2021
- $ref: '../../components/parameters/fulltext.yaml'
2122
- $ref: '../../components/parameters/pretty.yaml'
2223
responses:

docs/pi_api.json

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -194,19 +194,19 @@
194194
},
195195
"allowEmptyValue": true
196196
},
197-
"fulltext": {
198-
"name": "fulltext",
197+
"similar": {
198+
"name": "similar",
199199
"in": "query",
200-
"description": "If present, return the full text value of any text fields (ex: `description`). If not provided, field value is truncated to 100 words.\n\nParameter shall not have a value\n",
200+
"description": "If present, include similar matches in search response. For `search/byterm`, prioritizes title matches.\n",
201201
"schema": {
202202
"type": "boolean"
203203
},
204204
"allowEmptyValue": true
205205
},
206-
"similar": {
207-
"name": "similar",
206+
"fulltext": {
207+
"name": "fulltext",
208208
"in": "query",
209-
"description": "If present, include similar matches in search response\n",
209+
"description": "If present, return the full text value of any text fields (ex: `description`). If not provided, field value is truncated to 100 words.\n\nParameter shall not have a value\n",
210210
"schema": {
211211
"type": "boolean"
212212
},
@@ -4057,6 +4057,9 @@
40574057
{
40584058
"$ref": "#/components/parameters/clean"
40594059
},
4060+
{
4061+
"$ref": "#/components/parameters/similar"
4062+
},
40604063
{
40614064
"$ref": "#/components/parameters/fulltext"
40624065
},

docs/pi_api.yaml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,15 @@ components:
305305
schema:
306306
type: boolean
307307
allowEmptyValue: true
308+
similar:
309+
name: similar
310+
in: query
311+
description: >
312+
If present, include similar matches in search response. For
313+
`search/byterm`, prioritizes title matches.
314+
schema:
315+
type: boolean
316+
allowEmptyValue: true
308317
fulltext:
309318
name: fulltext
310319
in: query
@@ -317,14 +326,6 @@ components:
317326
schema:
318327
type: boolean
319328
allowEmptyValue: true
320-
similar:
321-
name: similar
322-
in: query
323-
description: |
324-
If present, include similar matches in search response
325-
schema:
326-
type: boolean
327-
allowEmptyValue: true
328329
q_person:
329330
name: q
330331
in: query
@@ -3568,6 +3569,7 @@ paths:
35683569
- $ref: '#/components/parameters/max'
35693570
- $ref: '#/components/parameters/aponly'
35703571
- $ref: '#/components/parameters/clean'
3572+
- $ref: '#/components/parameters/similar'
35713573
- $ref: '#/components/parameters/fulltext'
35723574
- $ref: '#/components/parameters/pretty'
35733575
responses:

0 commit comments

Comments
 (0)