Skip to content

Commit

Permalink
Fix incorrect scope, analyzer, and boost factor associated with the '…
Browse files Browse the repository at this point in the history
…caseName' search field.
  • Loading branch information
davidlesieur committed Nov 9, 2023
1 parent 09e4db1 commit df13229
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Bug fixes:
Case, Email, or Statute.
- Fix incorrect sorting of search results by title when item type is Case,
Email, or Statute.
- Fix incorrect scope, analyzer, and boost factor associated with the `caseName` search field.

Other changes:

Expand Down
12 changes: 6 additions & 6 deletions src/kerko/default_config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,12 @@ whoosh_language = "en"

# Primary titles.

[kerko.search_fields.zotero.caseName]
enabled = true
scopes = ["all", "metadata", "title"]
analyzer = "text"
boost = 20.0

[kerko.search_fields.zotero.nameOfAct]
enabled = true
scopes = ["all", "metadata", "title"]
Expand Down Expand Up @@ -428,12 +434,6 @@ whoosh_language = "en"
analyzer = "name"
boost = 4.0

[kerko.search_fields.zotero.caseName]
enabled = true
scopes = ["all", "metadata"]
analyzer = "name"
boost = 4.0

[kerko.search_fields.zotero.committee]
enabled = true
scopes = ["all", "metadata"]
Expand Down

0 comments on commit df13229

Please sign in to comment.