From 44fbad52edd10b88b996397d5f5456bc1f4e6800 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Mon, 10 Jun 2024 20:52:03 -0300 Subject: search: drop 'kind' field --- src/static/js/search-worker.js | 14 -------------- src/util/search-spec.js | 4 ---- 2 files changed, 18 deletions(-) (limited to 'src') diff --git a/src/static/js/search-worker.js b/src/static/js/search-worker.js index 6d4ed52a..e998e7af 100644 --- a/src/static/js/search-worker.js +++ b/src/static/js/search-worker.js @@ -383,20 +383,6 @@ function performSearchAction({query, options}) { function queryGenericIndex(index, query, options) { const interestingFieldCombinations = [ - ['kind', 'primaryName', 'parentName', 'groups'], - ['kind', 'primaryName', 'parentName'], - ['kind', 'primaryName', 'groups', 'contributors'], - ['kind', 'primaryName', 'groups', 'artTags'], - ['kind', 'primaryName', 'groups'], - ['kind', 'primaryName', 'contributors'], - ['kind', 'primaryName', 'artTags'], - ['kind', 'parentName', 'groups', 'artTags'], - ['kind', 'parentName', 'artTags'], - ['kind', 'groups', 'contributors'], - ['kind', 'groups', 'artTags'], - ['kind', 'groups'], - ['kind', 'contributors'], - ['primaryName', 'parentName', 'groups'], ['primaryName', 'parentName'], ['primaryName', 'groups', 'contributors'], diff --git a/src/util/search-spec.js b/src/util/search-spec.js index 22ce71a3..79e8ee95 100644 --- a/src/util/search-spec.js +++ b/src/util/search-spec.js @@ -115,9 +115,6 @@ export const searchSpec = { process(thing, opts) { const fields = {}; - fields.kind = - thing.constructor[Symbol.for('Thing.referenceType')]; - fields.primaryName = thing.name; @@ -188,7 +185,6 @@ export const searchSpec = { }, index: [ - 'kind', 'primaryName', 'parentName', 'artTags', -- cgit 1.3.0-6-gf8a5