AletheiaFact / AletheiaFact/aletheia

Technical Debt: Improve Topic Search with Accent-Insensitive Matching

未关闭
#2,144 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
tech tech-debt
主要语言
TypeScript
星标
55
派生
20
平均合并
2 天 6 小时
30 天内合并 PR
2

描述

## Problem
Currently, our topic search doesn't handle accent-insensitive matching. Searching for "politica" (without accent) doesn't match the existing topic "política" (with accent), leading to poor user experience, especially for Portuguese content where accents are common.

## Path to Explore
We need a solution that:

- Performs accent-insensitive matching at the database level
- Scales efficiently as the topics collection grows
- Doesn't load the entire collection into memory
- Maintains current functionality (limit, sorting, alias matching)

## Potential approaches to investigate:

- MongoDB collation settings for accent-insensitive queries
- Text indexes with language-specific configurations
- Normalized field strategy (storing pre-processed versions)
- MongoDB Atlas Search capabilities (if applicable)

## Impact
- User Experience: Users must type exact accents to find topics, which is cumbersome and error-prone
- Scope: Primarily affects Portuguese language searches where accents are common

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。