diff options
author | bobzel <zzzman@gmail.com> | 2020-09-01 23:15:55 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-09-01 23:15:55 -0400 |
commit | 4ab5484797ccc39a4e7924135f92259c2b15d88f (patch) | |
tree | b87c435e8d97964ec5861b64c0da5c352a93174d /src/client/util/SearchUtil.ts | |
parent | 25d8d43425785038a74acbc9be618b70f48bbba0 (diff) |
trying new solr schema that splits words on whitespace. fixed context menu clicking in schema/search view.
Diffstat (limited to 'src/client/util/SearchUtil.ts')
-rw-r--r-- | src/client/util/SearchUtil.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/util/SearchUtil.ts b/src/client/util/SearchUtil.ts index b34acce27..b09eff849 100644 --- a/src/client/util/SearchUtil.ts +++ b/src/client/util/SearchUtil.ts @@ -23,7 +23,7 @@ export namespace SearchUtil { } export interface SearchParams { - hl?: boolean; + hl?: string; "hl.fl"?: string; start?: number; rows?: number; @@ -39,7 +39,7 @@ export namespace SearchUtil { export async function Search(query: string, returnDocs: boolean, options: SearchParams = {}) { query = query || "*"; //If we just have a filter query, search for * as the query const rpquery = Utils.prepend("/dashsearch"); - let replacedQuery = query.replace(/type_t:([^ )])/g, (substring, arg) => `{!join from=id to=proto_i}type_t:${arg}`); + let replacedQuery = query.replace(/type_t:([^ )])/g, (substring, arg) => `{!join from=id to=proto_i}*:* AND ${arg}`); if (options.onlyAliases) { const header = query.match(/_[atnb]?:/) ? replacedQuery : "DEFAULT:" + replacedQuery; replacedQuery = `{!join from=id to=proto_i}${header}`; |