Adjust the Fields selection list to match the search scope.

Open
#720 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
rails, ruby
Domain
frontend, search

Research direction

This ticket is part of #716 and relates to #719; it does not name files or tests. First trace how “Search this collection” controls the fielded search selection list, then compare the two proposed options: limit it to All fields, Keyword, and Title, or disable it. Done when the chosen behavior is implemented for scoped searches and its effect on the available fields is verified.

Written by the indexing model from the issue text.

Description

Part of #716, related to #719.

This ticket is based on some assumptions.

When I use fielded search to search for a Name, Subject, or Place, the results come from the Indexed Terms section of the EAD. Thus, fielded searches always return collection-level results.

Given this, when searching within one collection, the only fielded searches that make sense are Keyword and Title. The other searches will always only result in the collection-level result itself. Feedback from SearchWorks suggests that this kind of result will be disorienting and unsatisfactory to users.

To avoid this issue, when the user selects "Search this collection":

Option 1: limit the fielded search selection list to "All fields" "Keyword" "Title".

I think there's utility in being able to search component titles without the scope notes or other metadata. (Additional functionality over previous version.)

Screen Shot 2019-09-04 at 3 35 28 PM
Option 2: disable the fielded search selection.

(Parity with previous version.)

Screen Shot 2019-09-04 at 3 34 42 PM
Dominant language
Ruby
Stars
53
Forks
27
Avg merge
1d 2h
Merged PRs (30d)
64

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from projectblacklight/arclight

All issues in projectblacklight/arclight

Similar issues

More Ruby issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.