typecho / typecho/typecho

希望能提供搜索增强

Open
#1,351 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
PHP
Stars
12.4k
Forks
2.1k
PR merge metrics
No merged PRs in 30d

Description

1. 该问题的步骤是什么?

如果在进行准确搜索时没有找到自己想要的结果,可以对包含特定词汇的信息进行排除,仅需使用减号,即-就可以了 (注意减号前有空格)

2. 你期待的结果是什么?实际看到的又是什么?

google搜索和wordpress内置搜索如果有多个关键词,只需在单词之间添加一个+号,例如想搜索tracking plugins,浏览器地址是search?q=tracking+plugins和?s=tracking+plugins;如果要排除指定关键词,例如想搜索tracking -plugins,浏览器地址是search?q=tracking+-plugins和?s=tracking+-plugins

目前官方没有支持搜索排除指定关键词

3. 问题出现的环境

任何环境

  • 操作系统版本:
  • Apache/NGINX 版本:
  • 数据库版本:
  • PHP 版本:
  • Typecho 版本:
  • 浏览器版本:

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the search handling described in the issue and review how multiple keywords are currently parsed. The work is done when searches support excluding a term with a space followed by a minus sign, matching the stated examples for both ordinary and WordPress-style query formats.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend, search
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.