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

Dp author tweaks #55

Merged
merged 8 commits into from
Feb 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions cypress/e2e/author.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe('Author Search', () => {
it('first hit should be by the author', {tags: ['@next']}, () => {
cy.get('#result0')
.find('.resultlist-data')
.contains(/^(?=.*Karin)(?=.*Glaser)$/)
.contains(/(?=.*Karin)(?=.*Glaser)/)

})
})
Expand Down Expand Up @@ -97,7 +97,7 @@ describe('Author Search', () => {
.find('[href*=Author]')
.each(($el, index, $lis) => {
cy.wrap($el)
.contains(/^(?=.*Samuel)(?=.*Scheidt)$/)
.contains(/(?=.*Samuel)(?=.*Scheidt)/)
})
.then(($lis) => {
cy.wrap($lis)
Expand Down Expand Up @@ -126,7 +126,7 @@ describe('Author Search', () => {
.find('[href*=Author]')
.each(($el, index, $lis) => {
cy.wrap($el)
.contains(/^(?=.*Friedrich)(?=.*Schiller)$/)
.contains(/(?=.*Friedrich)(?=.*Schiller)/)
})
.then(($lis) => {
cy.wrap($lis)
Expand Down Expand Up @@ -180,7 +180,7 @@ describe('Elfriede Jelinek', () => {
.find('[href*=Author]')
.each(($el, index, $lis) => {
cy.wrap($el)
.contains(/^(?=.*Elfriede)(?=.*Jelinek)$/)
.contains(/(?=.*Elfriede)(?=.*Jelinek)/)
})
.then(($lis) => {
cy.wrap($lis)
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/multi-lang-phrase.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ describe('Foreign language phrase search', () => {
cy.get('.resultlist')
.each(($el, index, $lis) => {
cy.wrap($el)
.contains(/German.*/)
.contains(/German.*/, {matchCase: false})
})
.then(($lis) => {
cy.wrap($lis)
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/place.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ describe('Publishing Place', () => {
})

// see multi-lang-phrase.cy.js
describe.only('geschichte berlin', () => {
describe('geschichte berlin', () => {
beforeEach(() => {
cy.visit({
url: '/Results',
Expand Down
73 changes: 58 additions & 15 deletions vufind/searchspecs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -235,34 +235,66 @@
# These searches use Dismax when possible:
Author:
DismaxFields:
- author^100
- author2
- author^350
- author2^100
- author_additional
- author_corporate
- author_variant
- author2_variant
- GND_txt_mv
- GND_txt_mv^200
- author_os_txtP_mv
DismaxHandler: edismax

#Verbesserte Phrasensuche, eWW
QueryFields:
author:
- [onephrase, 350]
- [author_initial, 100]
author2:
- [onephrase, 100]
- [author_initial, ~]
DismaxParams:
# - [bq, format:eJournal^237]
# - [bq, format:Journal^284]
# - [bq, format:eBook^255]
# - [bq, format:Book^500]
# - [bq, format:Article^620]
# - [bq, format:"electronic+Article"^620]
# - [bq, format_facet:"Serienband"^0.1]

- [bq, publishDateSort:2023^90]
- [bq, publishDateSort:2022^80]
- [bq, publishDateSort:2021^70]
- [bq, publishDateSort:2020^60]
- [bq, publishDateSort:2019^50]
- [bq, publishDateSort:2018^45]
- [bq, publishDateSort:2017^40]
- [bq, publishDateSort:2016^35]
- [bq, publishDateSort:2015^30]
- [bq, publishDateSort:2014^25]
- [bq, publishDateSort:2013^20]
- [bq, publishDateSort:2024^100]

#Verbesserte Phrasensuche, eWW
QueryFields:
author:
- [onephrase, 350]
- [author_initial, 100]
author2:
- [onephrase, 100]
- [author_initial, ~]
author_additional:
- [onephrase, 100]
- [author_initial, ~]
GND_txt_mv:
- [onephrase, 200]
- [author_initial, ~]
ExactSettings:
QueryFields:
author:
- [onephrase, 350]
author2:
- [onephrase, 100]
- [onephrase, 100]
author_additional:
- [onephrase, 100]
GND_txt_mv:
- [onephrase, 200]







ISN:
Expand Down Expand Up @@ -430,8 +462,19 @@ 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(publishDate)^500]
- [bq, publishDateSort:2023^280]
- [bq, publishDateSort:2022^260]
- [bq, publishDateSort:2021^240]
- [bq, publishDateSort:2020^220]
- [bq, publishDateSort:2019^200]
- [bq, publishDateSort:2018^180]
- [bq, publishDateSort:2017^160]
- [bq, publishDateSort:2016^150]
- [bq, publishDateSort:2015^140]
- [bq, publishDateSort:2014^130]
- [bq, publishDateSort:2013^120]
- [bq, publishDateSort:202*^500]


# - [bq, collection_details:"GBV_ILN_11"^300]
Expand Down