From: Adam Dullage Date: Mon, 26 Sep 2022 18:49:10 +0000 (+0100) Subject: Adjusted field boosts X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=645025d8b6ab2c7be726402c2bebed05c47b9a50;p=flatnotes.git Adjusted field boosts --- diff --git a/flatnotes/flatnotes.py b/flatnotes/flatnotes.py index b0fcd11..7536eb5 100644 --- a/flatnotes/flatnotes.py +++ b/flatnotes/flatnotes.py @@ -29,10 +29,10 @@ class IndexSchema(SchemaClass): filename = ID(unique=True, stored=True) last_modified = DATETIME(stored=True, sortable=True) title = TEXT( - field_boost=2, analyzer=StemmingFoldingAnalyzer, sortable=True + field_boost=2.0, analyzer=StemmingFoldingAnalyzer, sortable=True ) content = TEXT(analyzer=StemmingFoldingAnalyzer) - tags = KEYWORD(lowercase=True) + tags = KEYWORD(lowercase=True, field_boost=2.0) class InvalidTitleError(Exception):