Skip to content

Releases: Oxygen640/dsh-plugin-nuaa-search

v0.1.2

Choose a tag to compare

@Oxygen640 Oxygen640 released this 25 Oct 05:26
044a654

修复:中文长尾查询的相关性

之前把「实体名 + 意图词」一起送进搜索引擎时,Bing 会退化到通用页:
南京航空航天大学图书馆 能命中官网,但加上「开放时间」就变成「南京市_百度百科 / 南京旅游」。

现在每次搜索并发两个变体:原文,以及剥掉尾部意图词(开放时间、预约座位、几点、怎么…、地址…)
之后的「实体短语」;再用最长公共子串覆盖率挑更相关的那组结果。覆盖率接近时保留原文那组,
所以普通查询(如 DeepSeek 是什么)的排序不受影响。

实测(2026-10-25,cn.bing.com):

查询 修前命中 nuaa.edu.cn 修后
南航图书馆 开放时间 1/8 7/8
南京航空航天大学图书馆 开放时间 0/8 7/8
南京航空航天大学图书馆 预约座位 0/8 7/8
DeepSeek 是什么 正常 正常(不变)

新增

  • 配置项 stripIntent(默认 true):关掉就只查原文,恢复 0.1.1 的行为
  • 导出 stripIntent() / buildVariants() / relevanceOf() / chooseGroup() / longestCommonSubstring(),便于单测与复用
  • 单测 13 → 17 项,其中一条是真联网断言:长尾查询至少 3 条命中 nuaa.edu.cn

文档

  • 两个 README 补「查询变体」说明与 stripIntent 配置项
  • 补充已知限制:多限定词查询(如 南京航空航天大学将军路校区图书馆)仍会退化;
    Bing 的 HTML 端点不支持 site: 语法

安装(链接不变,仍指向 latest)

dsh plugin --profile desktop add "https://github.com/Oxygen640/dsh-plugin-nuaa-search/releases/latest/download/dsh-plugin-nuaa-search.tgz"

v0.1.1

Choose a tag to compare

@Oxygen640 Oxygen640 released this 25 Oct 03:55
9532835

修复

  • 调用前就已取消的搜索请求不再发起网络请求(之前会白跑一次,约 350ms)
  • 超长查询截断到 200 字符(之前传长查询会拿到 0 条结果)

改进

  • 新增 normalizeQuery(),单测从 10 项增加到 13 项
  • 单测支持 SKIP_LIVE=1 离线模式,CI 的离线 job 不再依赖外网
  • 新增 GitHub Actions:离线单测(Node 20 / 22,必须通过)+ 联网探测(真去 Bing 搜一次,不阻塞)

文档

  • 修正安装说明:本插件没有发布到 npm,请从插件市场 / Release tarball / GitHub 源码安装
  • 补充发版流程、大陆区目录同步延迟、查询长度限制等说明
  • 去掉文档中机器相关的绝对路径

安装(链接不变,始终指向 latest)

dsh plugin --profile desktop add "https://github.com/Oxygen640/dsh-plugin-nuaa-search/releases/latest/download/dsh-plugin-nuaa-search.tgz"

v0.1.0

Choose a tag to compare

@Oxygen640 Oxygen640 released this 24 Oct 13:11
a63e8d3
Add files via upload