Date range search/facet

Ouverte
#1,663 3 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
5/5
Temps estimé
Plus d'une semaine
Accessibilité débutants
35/100
Type d'issue
Fonctionnalité
Clarté
Plutôt claire
Activité
Active
Stack technique
ruby
Domaine
search

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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

Langage dominant
Ruby
Étoiles
53
Forks
27
Merge moyen
1 j 2 h
PR mergées (30 j)
64

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de projectblacklight/arclight

Toutes les issues de projectblacklight/arclight

Issues similaires

Plus d'issues Ruby

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.