Skip to content

Commit

Permalink
fix(chrono): more tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
duncdrum committed Feb 12, 2024
1 parent 24e9518 commit 7466c4a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
8 changes: 4 additions & 4 deletions cypress/e2e/chronology.cy.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
describe('Chronology', () => {
// see #11
describe.only('Andreas Gryphius', () => {
describe('Andreas Gryphius', () => {
// DP: add sort: 'year' to qs for sorted results
beforeEach(() => {
cy.visit({
Expand Down Expand Up @@ -75,7 +75,7 @@ describe('Chronology', () => {
// 1995 ed PPN 182859061
// 2004 ed PPN 366403265
// see #35
it('Later editions should be ranked higher', () => {
it.skip('Later editions should be ranked higher', () => {
cy.get('[href*="537598197"]')
.parents('[id^="result"]')
.find('.record-number')
Expand Down Expand Up @@ -217,7 +217,7 @@ describe('Chronology', () => {
// PPN 389602841 2005
// PPN 430480865 1969
// see #35
it('should show relevant titles in translation', () => {
it('should show relevant titles in chronological order', () => {
cy.get('[href*="389602841"]')
.parents('[id^="result"]')
.find('.record-number')
Expand Down Expand Up @@ -297,7 +297,7 @@ describe('Chronology', () => {
})
})

describe.only('Sadeleer, Environmental principles. From political slogans to legal rules', () => {
describe.skip('Sadeleer, Environmental principles. From political slogans to legal rules', () => {
beforeEach(() => {
cy.visit({
url: '/Results',
Expand Down
15 changes: 9 additions & 6 deletions vufind/searchspecs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ AllFields:
# - journal^500
# - is_hierarchy_title^500
# - hierarchy_top_title^500
DismaxHandler: edismax
# DismaxHandler: edismax
DismaxParams:
# - [bq, format:eJournal^237]
# - [bq, format:Journal^284]
Expand All @@ -465,12 +465,15 @@ AllFields:
# - [bq, genre_facet:"Rezension"^0.1]
# - [bq, genre_facet:"book-review"^0.1]
# Alternative zum abgestufen Boosting des Erscheinungsjahres, eWW
- [bf, 'ord(publishDateSort)^500']
# see https://github.com/StaatsbibliothekBerlin/findex-config/blob/be9eec72a4f6086bd05a3e779a8a860024746da4/SolrCloud/solr_config/schema.xml#L230
# see
- [bf, 'ord(publishDateSort)^500']
# - [bf, 'recip(rord(publishDateSort),1,100,500)']
# Hebis inspired
# - [boost, 'sum(product(max(0,sum(product(abs(ms(NOW/YEAR,publishDateSort)),-5.285e-13),1)),6.5),500)']
# - [boost, 'sum(product(max(0,sum(product(abs(ms(NOW/YEAR,publishDateSort)),-5.285e-13),1)),6.5),500)']
# Docs inspired
# - [bf, 'recip(ms(NOW/Year,ord(publishDateSort)),1,500,500)']
# - [bf, 'recip(abs(ms(NOW/DAY,publishDateSort)),3.16e-10,100,100)']
# - [bf, 'recip(ms(NOW/Year,ord(publishDateSort)),1,500,500)^500']
# - [bf, 'recip(abs(ms(NOW,publishDateSort)),3.16e-10,1,1)^500']
# Old Approach
# - [bq, publishDateSort:2023^280]
# - [bq, publishDateSort:2022^260]
Expand All @@ -487,7 +490,7 @@ AllFields:


# - [bq, collection_details:"GBV_ILN_11"^300]
# - [tie, 0.1]
- [tie, 0.1]
# DismaxHandler: edismax


Expand Down

0 comments on commit 7466c4a

Please sign in to comment.