Date range search/facet

Đang mở
#1,663 3 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
ruby
Lĩnh vực
search

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
Ruby
Star
53
Fork
27
Merge trung bình
1 ngày 2 giờ
Pull request đã merge (30 ngày)
64

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của projectblacklight/arclight

Tất cả issue của projectblacklight/arclight

Issue tương tự

Thêm issue về Ruby

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.