Commit 3b73de9
authored
Fix(WEB-9483): Index HTTP Method + Path (GET /<path>) for API Search (#37784)
* feat(search): index API endpoint REST paths in content field
Append the HTTP method and REST path to each API endpoint's search
content so users can find endpoints by typing the path. Capture the
method and path in api-pages-full-index.json and pass them to the
per-endpoint indexer.
* docs(search): comment API endpoint path/method capture
* chore(search): revert API path indexing to baseline
Remove the endpoint path/method indexing changes so this branch builds
the master baseline search.json for diffing. To be re-added later.
* fix(search): dedupe v1/v2 API records by anchorized summary
Compare anchorized summaries in the v1/v2 disambiguation so endpoints
whose translated summaries differ only by punctuation (e.g. trailing
period) still get a unique -v1/-v2 anchor instead of colliding on one
objectID and churning on every sync.
* [empty] trigger build to test updated api
* [test] tweak bits_chat overview wording to verify single-record sync diff
* Revert [test] bits_chat wording change
* Re-add API path/method indexing as a commented, inert toggle
Forward $endpoint_path/$method into api-page-index.json and add a
commented-out append to the content field. Disabled by default (uncomment
one line to enable); output is unchanged from baseline.
* Enable API endpoint path/method indexing in content field
Append "METHOD /path" to each API endpoint record's content so endpoint
REST paths are searchable. Appended at the end to keep it out of the start
of the auto-embedded content.
* Trim stale/low-value comments on API path indexing1 parent 2d8c8fc commit 3b73de9
2 files changed
Lines changed: 19 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
23 | 29 | | |
24 | 30 | | |
25 | 31 | | |
26 | 32 | | |
27 | 33 | | |
28 | 34 | | |
29 | | - | |
| 35 | + | |
30 | 36 | | |
31 | 37 | | |
32 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | | - | |
38 | | - | |
| 37 | + | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
51 | 53 | | |
52 | 54 | | |
53 | 55 | | |
| |||
60 | 62 | | |
61 | 63 | | |
62 | 64 | | |
63 | | - | |
| 65 | + | |
64 | 66 | | |
65 | | - | |
66 | | - | |
| 67 | + | |
| 68 | + | |
67 | 69 | | |
68 | 70 | | |
69 | 71 | | |
| |||
75 | 77 | | |
76 | 78 | | |
77 | 79 | | |
78 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
79 | 83 | | |
80 | 84 | | |
81 | 85 | | |
| |||
0 commit comments