diff --git a/src-ui/src/app/components/admin/settings/settings.component.html b/src-ui/src/app/components/admin/settings/settings.component.html
index ab02f42f2..bcab7de33 100644
--- a/src-ui/src/app/components/admin/settings/settings.component.html
+++ b/src-ui/src/app/components/admin/settings/settings.component.html
@@ -213,8 +213,8 @@
diff --git a/src-ui/src/app/components/app-frame/global-search/global-search.component.spec.ts b/src-ui/src/app/components/app-frame/global-search/global-search.component.spec.ts
index 023231199..f2a1ac3a6 100644
--- a/src-ui/src/app/components/app-frame/global-search/global-search.component.spec.ts
+++ b/src-ui/src/app/components/app-frame/global-search/global-search.component.spec.ts
@@ -504,15 +504,6 @@ describe('GlobalSearchComponent', () => {
expect(focusSpy).toHaveBeenCalled()
})
- it('should support explicit advanced search', () => {
- const qfSpy = jest.spyOn(documentListViewService, 'quickFilter')
- component.query = 'test'
- component.runFullSearch()
- expect(qfSpy).toHaveBeenCalledWith([
- { rule_type: FILTER_FULLTEXT_QUERY, value: 'test' },
- ])
- })
-
it('should support open in new window', () => {
const openSpy = jest.spyOn(window, 'open')
const event = new Event('click')
@@ -539,17 +530,17 @@ describe('GlobalSearchComponent', () => {
component.query = 'test'
component.runFullSearch()
expect(qfSpy).toHaveBeenCalledWith([
- { rule_type: FILTER_FULLTEXT_QUERY, value: 'test' },
+ { rule_type: FILTER_TITLE_CONTENT, value: 'test' },
])
settingsService.set(
SETTINGS_KEYS.SEARCH_FULL_TYPE,
- GlobalSearchType.TITLE_CONTENT
+ GlobalSearchType.ADVANCED
)
component.query = 'test'
component.runFullSearch()
expect(qfSpy).toHaveBeenCalledWith([
- { rule_type: FILTER_TITLE_CONTENT, value: 'test' },
+ { rule_type: FILTER_FULLTEXT_QUERY, value: 'test' },
])
})
})
diff --git a/src-ui/src/app/data/ui-settings.ts b/src-ui/src/app/data/ui-settings.ts
index b6bb62217..29ea08786 100644
--- a/src-ui/src/app/data/ui-settings.ts
+++ b/src-ui/src/app/data/ui-settings.ts
@@ -234,6 +234,6 @@ export const SETTINGS: UiSetting[] = [
{
key: SETTINGS_KEYS.SEARCH_FULL_TYPE,
type: 'string',
- default: GlobalSearchType.ADVANCED,
+ default: GlobalSearchType.TITLE_CONTENT,
},
]