From 9c1db7dca7e5a0232c3fa0a4e6333d63100bff89 Mon Sep 17 00:00:00 2001 From: engchina <12236799+engchina@users.noreply.github.com> Date: Thu, 6 Mar 2025 18:58:51 +0800 Subject: [PATCH] modify oracle lexer name Fixes #15106 (#15108) Co-authored-by: engchina --- api/core/rag/datasource/vdb/oracle/oraclevector.py | 2 +- docker/startupscripts/init_user.script | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/core/rag/datasource/vdb/oracle/oraclevector.py b/api/core/rag/datasource/vdb/oracle/oraclevector.py index 8262c219b4..e5ca4492c6 100644 --- a/api/core/rag/datasource/vdb/oracle/oraclevector.py +++ b/api/core/rag/datasource/vdb/oracle/oraclevector.py @@ -61,7 +61,7 @@ CREATE TABLE IF NOT EXISTS {table_name} ( SQL_CREATE_INDEX = """ CREATE INDEX IF NOT EXISTS idx_docs_{table_name} ON {table_name}(text) INDEXTYPE IS CTXSYS.CONTEXT PARAMETERS -('FILTER CTXSYS.NULL_FILTER SECTION GROUP CTXSYS.HTML_SECTION_GROUP LEXER multilingual_lexer') +('FILTER CTXSYS.NULL_FILTER SECTION GROUP CTXSYS.HTML_SECTION_GROUP LEXER world_lexer') """ diff --git a/docker/startupscripts/init_user.script b/docker/startupscripts/init_user.script index 55e8510d2f..0c5bff1ef6 100755 --- a/docker/startupscripts/init_user.script +++ b/docker/startupscripts/init_user.script @@ -5,6 +5,6 @@ create user dify identified by dify DEFAULT TABLESPACE users quota unlimited on grant DB_DEVELOPER_ROLE to dify; BEGIN -CTX_DDL.CREATE_PREFERENCE('dify.multilingual_lexer','CHINESE_VGRAM_LEXER'); +CTX_DDL.CREATE_PREFERENCE('dify.world_lexer','WORLD_LEXER'); END; /