Skip to content

Commit

Permalink
#1161 Adds configuration options for a weighted search
Browse files Browse the repository at this point in the history
  • Loading branch information
extracts committed Nov 17, 2023
1 parent d598874 commit b5fae2d
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions application/configs/application.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit b5fae2d

Please sign in to comment.