From b5fae2d58069e5072a70ac71b3f008cd4e18b1c5 Mon Sep 17 00:00:00 2001 From: Matthias Steffens Date: Fri, 17 Nov 2023 21:09:09 +0100 Subject: [PATCH] #1161 Adds configuration options for a weighted search --- application/configs/application.ini | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/application/configs/application.ini b/application/configs/application.ini index 95df138bf..e979ac667 100644 --- a/application/configs/application.ini +++ b/application/configs/application.ini @@ -227,6 +227,28 @@ search.index.field.year.order = 'PublishedDate,PublishedYear' ; Enrichment fields to be excluded from indexing (comma separated) search.index.enrichment.blacklist = 'opus_doi_json' +; WEIGHTED SEARCH +; if set to `1` a weighted search will be used where query matches in particular fields can be +; assigned different importance +search.weightedSearch = 0 + +; boost factors for fields which increase (>1.0) or decrease (<1.0) the importance of query matches +; in that field +search.simple.abstract = 1 +search.simple.title = 1 +search.simple.author = 1 +search.simple.subject = 1 +search.simple.title_parent = 1 +search.simple.title_additional = 1 +search.simple.title_sub = 1 +search.simple.creating_corporation = 1 +search.simple.contributing_corporation = 1 +search.simple.publisher_name = 1 +search.simple.publisher_place = 1 +search.simple.identifier = 1 +search.simple.persons = 1 +search.simple.fulltext = 1 + ;DOCTYPE VALIDATION SCHEMA FILE ; TODO determine path dynamically (does this belong into the framework) documentTypes.xmlSchema = APPLICATION_PATH "/vendor/opus4-repo/framework/library/Opus/Document/documenttype.xsd"