Skip to content

Commit

Permalink
Remove extra addShoulds
Browse files Browse the repository at this point in the history
  • Loading branch information
danamansana committed Feb 3, 2025
1 parent 6c68275 commit 3275f30
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/elasticsearch/elastic-query-builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -351,9 +351,7 @@ class ElasticQueryBuilder {
boostSubjectMatches () {
const q = this.request.params.subject_prefix
this.query.addShoulds([
termMatch('subjectLiteral.raw', q, 50)
])
this.query.addShoulds([
termMatch('subjectLiteral.raw', q, 50),
termMatch('parallelSubjectLiteral.raw', q, 50)
])
}
Expand Down

0 comments on commit 3275f30

Please sign in to comment.