Docs search: let pages declare tags so related searches find them
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 45/100
- Tipo de issue
- Funcionalidade
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- typescript
- Domínio
- documentation, search
Direção de pesquisa
Start with the search endpoint in app/docs/api/search/route.ts and the docs frontmatter schema in source.config.ts, where the blog's optional tags list shows the pattern to follow. Check how the search index is built and whether it can weight tags above body text. Done means a page is found by a tag that does not appear in its body, existing pages still validate, and pnpm test and pnpm build pass.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Copied from DeadantCo/answerLoops#109 · originally opened by sethr07 on 2026-11-20
Copied from https://github.com/answerLoops/answerLoops/issues/480 — originally opened by
@NathanTarberton 2026-10-26
Problem
Docs search matches page titles and body text, but nothing else. Someone searching "webhook", "SSO" or "Ollama" gets results ordered only by where the word happens to appear, and a page can't say what else it should be found for. A visitor looking for "self-host" or "Docker" can miss the right page because it uses different words.
Where
app/docs/api/search/route.tsserves the search (built on Fumadocs'createFromSource).source.config.tsdefines the docs frontmatter schema.- The blog already has an optional
tagslist in its frontmatter (source.config.ts), which is a pattern to follow.
Suggested approach
- Add an optional
tagsfield (a list of strings) to the docs frontmatter schema. - Include the tags in the search index so they influence matching, and check whether the search library supports weighting them above body text.
- Add useful tags to the pages people search for most (the integrations, self-hosting and billing pages first).
- Check the result list shows enough context to tell similar pages apart.
Acceptance criteria
- Docs frontmatter accepts an optional
tagslist, and existing pages still validate. - A search for a tag that doesn't appear in a page's body still finds that page.
- At least the top 15 most-visited pages have sensible tags.
- A test covers the search route returning a page by tag.
-
pnpm testandpnpm buildpass.
Start here: new to the project? Read CONTRIBUTING.md first. It covers the ground rules, running answerLoops locally, and how to open a pull request.
- Linguagem predominante
- TypeScript
- Estrelas
- 0
- Forks
- 0
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Preparar o ambiente
- Inclui um Dockerfile ou arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de DeadantCo/answerLoopsdev
-
Widget: match the chat bubble color to the rest of the widgetTalvez já em andamento @sethr07 assumiu hoje. Abertaenhancement frontend help wanted
Dificuldade 2/5 Meio dia Facilidade para iniciantes 75/100
DeadantCo/answerLoopsdev#68 · 3 comentários ·
-
Widget: make the chat window fit on small phonesTalvez já em andamento @sethr07 assumiu hoje. Abertaenhancement frontend good first issue help wanted
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
DeadantCo/answerLoopsdev#67 · 9 comentários ·
-
Add 'select all' option to Slack channel picker in SettingsTalvez já em andamento @sethr07 assumiu hoje. Abertafrontend good first issue
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
DeadantCo/answerLoopsdev#22 · 5 comentários ·
-
enhancement frontend help wanted
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 45/100
DeadantCo/answerLoopsdev#141 ·
-
backend enhancement frontend help wanted
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 45/100
DeadantCo/answerLoopsdev#140 ·
Todas as issues de DeadantCo/answerLoopsdev
Issues semelhantes
-
chore
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
drydocs/meridian#1503 · 1 comentário ·
Mantenedores costumam responder em até 2 dias
-
refactor review: high
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
1lck/Lithe-IDEA#2376 ·
Mantenedores costumam responder em até 1 dia
-
bug extension mcp
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
primer/primitives#1426 ·
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 88/100
danielmiessler/LifeOS#2941 ·
Mantenedores costumam responder em até 4 dias