From 553d05cf0af7be2a930e42157820ec5547c2a454 Mon Sep 17 00:00:00 2001 From: Duncan Paterson Date: Mon, 5 Feb 2024 17:18:26 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix(yaml):=20AllFields=20chrono?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit add Hebis, and docs functions disable edismax none working on Sadeleer example 202*^500 alone does the trick so far see #11 --- cypress/e2e/chronology.cy.js | 2 +- vufind/searchspecs.yaml | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/cypress/e2e/chronology.cy.js b/cypress/e2e/chronology.cy.js index 37a332e..be7248e 100644 --- a/cypress/e2e/chronology.cy.js +++ b/cypress/e2e/chronology.cy.js @@ -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') diff --git a/vufind/searchspecs.yaml b/vufind/searchspecs.yaml index 2700702..d28cf75 100644 --- a/vufind/searchspecs.yaml +++ b/vufind/searchspecs.yaml @@ -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] @@ -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] @@ -479,7 +485,7 @@ AllFields: # - [bq, collection_details:"GBV_ILN_11"^300] # - [tie, 0.1] - DismaxHandler: edismax + # DismaxHandler: edismax