Skip to content
This repository has been archived by the owner on Mar 24, 2020. It is now read-only.

Title sorting ignores quotes and case #689

Merged
merged 1 commit into from
Jul 17, 2019
Merged

Conversation

mcritchlow
Copy link
Member

@mcritchlow mcritchlow commented Jul 16, 2019

Fixes #661

MERGED NOTE: There will need to be an accompanying PR against dams4-solr with these schema.xml changes. I haven't put that up yet, because I'd like feedback from the team on this approach before doing so. This will require a full reindex, so we want to get this right the first time, ideally..

Local Checklist

  • Tests written and passing locally?
  • Code style checked?
  • QA-ed locally?
  • Rebased with master branch?
  • Configuration updated (if needed)?
  • Documentation updated (if needed)?

What does this PR do?

  • creates an alphaStrippedSort fieldtype which ignores double quotes/single quotes, and parens (for now), and filters case-sensitivity
  • explicitly declares title_ssi as a field of type alphaStrippedSort for use in
    sorting instead of the default tokenizer/filters applied when analyzing title_ssi
  • adds a test verifying the results illustrated in the attached screenshot
Why are we doing this? Any context of related work?

References #661

Screenshots

pic-selected-190716-1301-44

@ucsdlib/developers - please review

@mcritchlow mcritchlow force-pushed the feature/solr-title-searching branch from 135e2bf to 6c591ff Compare July 16, 2019 23:04
@coveralls
Copy link

coveralls commented Jul 16, 2019

Coverage Status

Coverage remained the same at 65.909% when pulling feb7500 on feature/solr-title-searching into b97a81c on master.

@mcritchlow mcritchlow force-pushed the feature/solr-title-searching branch 3 times, most recently from 6010a7c to 6563ea3 Compare July 17, 2019 14:39
- creates an alphaStrippedSort fieldtype which removes double quotes,
  filters case-sensitivity, whitespace, etc.
- explicitly declares title_ssi as a solr field of type alphaStrippedSort for use in
  sorting
@mcritchlow mcritchlow force-pushed the feature/solr-title-searching branch from 6563ea3 to feb7500 Compare July 17, 2019 16:55
@mcritchlow
Copy link
Member Author

@gamontoya - does the screenshot above look like what you'd expect for sorting?

@mcritchlow mcritchlow changed the title WIP: Title sorting ignores quotes and case Title sorting ignores quotes and case Jul 17, 2019
@mcritchlow mcritchlow requested review from lsitu and hweng July 17, 2019 17:38
@gamontoya
Copy link

@mcritchlow Yes, right on!

Copy link
Member

@lsitu lsitu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks good! 👍

@hweng
Copy link
Contributor

hweng commented Jul 17, 2019

👍

@hweng hweng merged commit e3529fc into master Jul 17, 2019
@hweng hweng deleted the feature/solr-title-searching branch July 17, 2019 18:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ignore characters when sorting by default title
5 participants