Date range search/facet

未关闭
#1,663 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
ruby
领域
search

调研方向

Start by reading the existing date-range indexing and facet behavior, then review replaced issues #1623 and #1424 for context. The proposed behavior and open questions need agreement before implementation; done means the agreed behavior is covered by tests, including invalid @normal dates and keyword year searches.

由索引模型根据 Issue 内容生成。

描述

The date range limit includes only records whose dates have @normal. A year typed into a keyword search ("jabara 1959") only matches records where that exact year appears in the text.

Proposed behavior

  • Core uses only @normal for the date range limit.
  • Core doesn't guess years from date text. Sites that want to can supply their own logic for which years a record covers, without overriding the indexer.
  • Years in keyword searches stay ordinary keywords; researchers use the date range limit for ranges.
  • A record with an invalid @normal (for example, an end year before the start year) is still indexed and displays its dates; it is just left out of the date range limit.

Questions to settle

  • Is leaving out records without @normal acceptable for core, given that guessing from text would be right for some collections and wrong for others?
  • Is "use the date range limit" an acceptable answer for year searches? Matching ranges from keyword searches could make box 1959 return everything dated 1959.

Out of scope

Sorting (see #1662 ).

Replaces

#1623, #1424

主要语言
Ruby
星标
53
派生
27
平均合并
1 天 2 小时
30 天内合并 PR
64

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

projectblacklight/arclight 的其他 Issue

查看 projectblacklight/arclight 的全部 Issue

相似的 Issue

更多 Ruby Issue

把新 issue 发到你的邮箱

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