Frontmatter
| id | 8418 |
| title | Refactor and Document SearchService |
| state | Closed |
| labels | documentationairefactoring |
| assignees | tobiu |
| createdAt | Jan 8, 2026, 12:20 PM |
| updatedAt | Jan 8, 2026, 12:45 PM |
| githubUrl | https://github.com/neomjs/neo/issues/8418 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Jan 8, 2026, 12:45 PM |
Refactor and Document SearchService
tobiu assigned to @tobiu on Jan 8, 2026, 12:44 PM

tobiu
Jan 8, 2026, 12:45 PM
Input from Gemini 3 Pro:
✦ Refactored
SearchService.mjsto useQueryServicefor document retrieval, ensuring consistent and intelligent scoring. Added intent-driven JSDoc documentation and updatedopenapi.yamlto support thetypefilter. Verified withtest_rag.mjs.
tobiu closed this issue on Jan 8, 2026, 12:45 PM
SearchService.mjs:embeddingModel_andmodel_(no hooks used).ask()method to useQueryService.queryDocuments()internally for better scoring and filtering.ask()signature to supporttypeparameter (default 'all'), passing it toQueryService.SearchServiceclass and methods.@seelinks to relevant services.