Skip to content

Commit 60d8233

Browse files
committed
fix: review update
1 parent 6eef7de commit 60d8233

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/patternFly.search.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ interface SearchPatternFlyOptions {
106106
/**
107107
* Apply sequenced priority filters for predictable filtering, filter PatternFly data.
108108
*
109-
* @note This is a predictable filter, not a search. Use searchPatternFly for fuzzy search.`
109+
* @note This is a predictable filter, not a search. Use searchPatternFly for fuzzy search.
110110
* - Has case-insensitive filtering for all fields
111111
* - Exact "version" filtering only
112112
* - Has `prefix`, `suffix` filtering for any non-"version" field.
@@ -256,7 +256,7 @@ const searchPatternFly = async (searchQuery: unknown, filters?: FilterPatternFly
256256
searchResults = search.results;
257257
}
258258

259-
// Store refined results in a map for easy "did we already find this?" checks"
259+
// Store refined results in a map for easy "did we already find this?" checks
260260
const searchResultsMap = new Map<string, SearchPatternFlyResult>();
261261
const searchResultsFilterMap = new Map<string, PatternFlyMcpResourceFilteredMetadata>();
262262
const fuzzyResultsMap = new Map<string, FuzzySearchResult>();

src/server.search.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,15 +168,15 @@ const findClosest = (
168168
* @returns {FuzzySearch} An object containing search results with distance and match type
169169
* - `results`: Array of matching strings with distance and match type.
170170
* - `totalResults`: Total number of results found.
171-
* - `totalReturnedResults`: Total number of results returned (after applying maxResults limit).
171+
* - `totalResultsReturned`: Total number of results returned (after applying maxResults limit).
172172
*
173173
* @example
174174
* ```typescript
175175
* const results = fuzzySearch('button', ['Button', 'ButtonGroup', 'Badge'], {
176176
* maxDistance: 3,
177177
* maxResults: 5
178178
* });
179-
* // Returns: { results: [{ item: 'Button', distance: 0, matchType: 'exact' }, ...], totalResults: 15, totalReturnedResults: 5 }
179+
* // Returns: { results: [{ item: 'Button', distance: 0, matchType: 'exact' }, ...], totalResults: 15, totalResultsReturned: 5 }
180180
* ```
181181
*/
182182
const fuzzySearch = (

0 commit comments

Comments
 (0)