Skip to content

Commit

Permalink
🐞 fix(yaml): AllFields chrono
Browse files Browse the repository at this point in the history
add Hebis, and docs functions
disable edismax
none working on Sadeleer example

202*^500 alone does the trick so far
see #11
  • Loading branch information
duncdrum committed Feb 5, 2024
1 parent 9588bce commit 553d05c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cypress/e2e/chronology.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ describe('Chronology', () => {
// TOP1 is book (newest) followed by ebook 9same date) and earlier article with identical title
// 2020 book PPN 1740404548
// 2004 article PPN OLC1736991698
it('newer book shuold be before older article', () => {
it.only('newer book shuold be before older article', () => {
cy.get('[href*="1740404548"]')
.parents('[id^="result"]')
.find('.record-number')
Expand Down
10 changes: 8 additions & 2 deletions vufind/searchspecs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,7 @@ AllFields:
- journal^500
- is_hierarchy_title^500
- hierarchy_top_title^500
# DismaxHandler: edismax
DismaxParams:
- [bq, format:eJournal^237]
- [bq, format:Journal^284]
Expand All @@ -462,7 +463,12 @@ AllFields:
- [bq, genre_facet:"Rezension"^0.1]
- [bq, genre_facet:"book-review"^0.1]
# Alternative zum abgestufen Boosting des Erscheinungsjahres, eWW
- [bf=ord(publishDate)^500]
# - [bf=ord(publishDateSort)^500]
# Hebis inspired
- [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,1000,1000)]
# Old Approach
# - [bq, publishDateSort:2023^280]
# - [bq, publishDateSort:2022^260]
# - [bq, publishDateSort:2021^240]
Expand All @@ -479,7 +485,7 @@ AllFields:

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



Expand Down

0 comments on commit 553d05c

Please sign in to comment.