Date range search/facet

Aberta
#1,663 3 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
5/5
Tempo estimado
Mais de uma semana
Facilidade para iniciantes
35/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
ruby
Domínio
search

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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

Linguagem predominante
Ruby
Estrelas
53
Forks
27
Merge médio
1d 2h
PRs com merge (30d)
64

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de projectblacklight/arclight

Todas as issues de projectblacklight/arclight

Issues semelhantes

Mais issues de Ruby

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.