Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional sort orders #307

Closed
escowles opened this issue Feb 5, 2018 · 13 comments
Closed

Additional sort orders #307

escowles opened this issue Feb 5, 2018 · 13 comments
Assignees

Comments

@escowles
Copy link
Member

escowles commented Feb 5, 2018

Add ability to sort search results by

  • title
  • date
  • author
  • place of publication
@escowles escowles added the ready label Feb 5, 2018
@hackartisan
Copy link
Member

My memory of solr is that you can only sort on a single-valued field. Is this no longer the case? If it is the case we'll need single-value versions of some/all of these and a way to decide which value to use.

@tpendragon
Copy link
Contributor

tpendragon commented Feb 5, 2018

That's still the case. Maybe we just pick the first value and see how that goes? Will be an issue for multi-language titles.

@escowles
Copy link
Member Author

escowles commented Feb 5, 2018

Yes, I think we should make sure we're always using the Roman-script titles to make the sorting more consistent.

@hackartisan
Copy link
Member

Is there a way to tell what language a title is in?

@tpendragon
Copy link
Contributor

You can tell the direction it's in (#dir I think?), but I think that's it.

@tpendragon
Copy link
Contributor

The source metadata has the language info, so we can just make sure the first or last thing is the romanized title when we index.

@hackartisan hackartisan self-assigned this Feb 19, 2018
@hackartisan
Copy link
Member

hackartisan commented Feb 21, 2018

I can't find any example records (in figgy) with publication_place data. does anyone know of one?

@tampakis
Copy link
Contributor

Maybe publication place doesn't make it into figgy? Here's a record in figgy that has a "publication_place_facet" value in Orangelight https://bibdata.princeton.edu/bibliographic/4606238/solr
https://figgy.princeton.edu/catalog/3addcc26-6800-4aa3-b713-35e70483bc94

@hackartisan
Copy link
Member

Yeah it's available as a MARC relator field but I'm not sure anything is using it. I'm not sure where the mapping is defined; maybe as part of the imported metadata logic which I didn't dive deeply into.

@hackartisan
Copy link
Member

We've agreed to move forward without place_of_publication. It seems like a use case well-served by searching, and the data doesn't really seem to be there to support it. If we find a good use case to support doing this, after all, we should open a new ticket for that work.

@hackartisan
Copy link
Member

for deploy: each collection must be reindexed. Once reindex is complete, go to dashboard configuration > search > results, select the new sort options, and save. then they will appear.

@escowles this is currently deployed to pomegranate staging and on for the Cotsen collection.

@hackartisan
Copy link
Member

except that it's not working. will look into it.

hackartisan added a commit that referenced this issue Feb 22, 2018
tpendragon pushed a commit that referenced this issue Feb 22, 2018
Revert "Add sort fields for title, date, and author; fixes #307"
@hackartisan
Copy link
Member

reverted the commit because things weren't working on staging. will re-test pending new staging box, which is block by ruby version work in the ansible repo.

@hackartisan hackartisan reopened this Mar 2, 2018
@escowles escowles added the ready label Apr 23, 2018
@hackartisan hackartisan removed their assignment Apr 23, 2018
@tpendragon tpendragon removed the ready label Apr 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants