Fixed precedence of search results in title

This commit is contained in:
squidfunk 2020-03-16 15:13:09 +01:00
parent f300a82014
commit 0f116bab03
6 changed files with 8 additions and 8 deletions

File diff suppressed because one or more lines are too long

View File

@ -3,8 +3,8 @@
"assets/javascripts/bundle.js.map": "assets/javascripts/bundle.bdb82690.min.js.map", "assets/javascripts/bundle.js.map": "assets/javascripts/bundle.bdb82690.min.js.map",
"assets/javascripts/vendor.js": "assets/javascripts/vendor.aad0415a.min.js", "assets/javascripts/vendor.js": "assets/javascripts/vendor.aad0415a.min.js",
"assets/javascripts/vendor.js.map": "assets/javascripts/vendor.aad0415a.min.js.map", "assets/javascripts/vendor.js.map": "assets/javascripts/vendor.aad0415a.min.js.map",
"assets/javascripts/worker/search.js": "assets/javascripts/worker/search.784c5235.min.js", "assets/javascripts/worker/search.js": "assets/javascripts/worker/search.2613054f.min.js",
"assets/javascripts/worker/search.js.map": "assets/javascripts/worker/search.784c5235.min.js.map", "assets/javascripts/worker/search.js.map": "assets/javascripts/worker/search.2613054f.min.js.map",
"assets/stylesheets/main.css": "assets/stylesheets/main.acbb280a.min.css", "assets/stylesheets/main.css": "assets/stylesheets/main.acbb280a.min.css",
"assets/stylesheets/palette.css": "assets/stylesheets/palette.31180ff2.min.css" "assets/stylesheets/palette.css": "assets/stylesheets/palette.31180ff2.min.css"
} }

View File

@ -201,7 +201,7 @@
url: { url: {
base: "{{ base_url }}", base: "{{ base_url }}",
worker: { worker: {
search: "{{ 'assets/javascripts/worker/search.784c5235.min.js' | url }}" search: "{{ 'assets/javascripts/worker/search.2613054f.min.js' | url }}"
} }
}, },
features: {{ config.theme.features | tojson }} features: {{ config.theme.features | tojson }}

View File

@ -151,7 +151,7 @@ export class SearchIndex {
} }
/* Setup fields and reference */ /* Setup fields and reference */
this.field("title", { boost: 10 }) this.field("title", { boost: 1000 })
this.field("text") this.field("text")
this.ref("location") this.ref("location")