关于oracle的全文检索问题
时间:2010-09-10
来源:互联网
请教给问题:做oracle的全文检索,将一个clob字段创建索引,数据量大概是40万条,初次创建索引的时候比较慢还可以忍受,但是同步和优化的时候也比较慢,请问有没有什么办法可以提高同步和优化的速度?
作者: vhtk 发布时间: 2010-09-10
还没有做过用CLOB来作检索的例子,帮你顶一下。
作者: renxiao2003 发布时间: 2010-09-10
示例
表结构:
create table products(
productid number(10) not null ,
name varchar2(255) ,
description CLOB) ;
方法:
SELECT productid, name FROM products
WHERE dbms_lob.instr(products.description,′some text′,1,1) > 0;
下面列出了DBMS_LOB包中的过程函数:
APPEND procedure Appends the contents of the source LOB to the destination LOB.
CLOSE procedure Closes a previously opened internal or external LOB.
COMPARE function Compares two entire LOBs or parts of two LOBs.
COPY procedure Copies all, or part, of the source LOB to the destination LOB.
CREATETEMPORARY procedure Creates a temporary BLOB or CLOB and its corresponding index in the user′s default temporary tablespace.
ERASE procedure Erases all or part of a LOB.
FILECLOSE procedure Closes the file.
FILECLOSEALL procedure Closes all previously opened files.
FILEEXISTS function Checks if the file exists on the server.
FILEGETNAME procedure Gets the directory alias and file name.
FILEISOPEN function Checks if the file was opened using the input BFILE locators.
FILEOPEN procedure Opens a file.
FREETEMPORARY procedure Frees the temporary BLOB or CLOB in the user′s default temporary tablespace.
GETCHUNKSIZE function Returns the amount of space used in the LOB chunk to store the LOB value.
GETLENGTH function Gets the length of the LOB value.
INSTR function Returns the matching position of the nth occurrence of the pattern in the LOB.
ISOPEN function Checks to see if the LOB was already opened using the input locator.
ISTEMPORARY function Checks if the locator is pointing to a temporary LOB.
LOADFROMFILE procedure Loads BFILE data into an internal LOB.
OPEN procedure Opens a LOB (internal, external, or temporary) in the indicated mode.
READ procedure Reads data from the LOB starting at the specified offset.
SUBSTR function Returns part of the LOB value starting at the specified offset.
TRIM procedure Trims the LOB value to the specified shorter length.
WRITE procedure Writes data to the LOB from a specified offset.
WRITEAPPEND procedure Writes a buffer to the end of a LOB.
表结构:
create table products(
productid number(10) not null ,
name varchar2(255) ,
description CLOB) ;
方法:
SELECT productid, name FROM products
WHERE dbms_lob.instr(products.description,′some text′,1,1) > 0;
下面列出了DBMS_LOB包中的过程函数:
APPEND procedure Appends the contents of the source LOB to the destination LOB.
CLOSE procedure Closes a previously opened internal or external LOB.
COMPARE function Compares two entire LOBs or parts of two LOBs.
COPY procedure Copies all, or part, of the source LOB to the destination LOB.
CREATETEMPORARY procedure Creates a temporary BLOB or CLOB and its corresponding index in the user′s default temporary tablespace.
ERASE procedure Erases all or part of a LOB.
FILECLOSE procedure Closes the file.
FILECLOSEALL procedure Closes all previously opened files.
FILEEXISTS function Checks if the file exists on the server.
FILEGETNAME procedure Gets the directory alias and file name.
FILEISOPEN function Checks if the file was opened using the input BFILE locators.
FILEOPEN procedure Opens a file.
FREETEMPORARY procedure Frees the temporary BLOB or CLOB in the user′s default temporary tablespace.
GETCHUNKSIZE function Returns the amount of space used in the LOB chunk to store the LOB value.
GETLENGTH function Gets the length of the LOB value.
INSTR function Returns the matching position of the nth occurrence of the pattern in the LOB.
ISOPEN function Checks to see if the LOB was already opened using the input locator.
ISTEMPORARY function Checks if the locator is pointing to a temporary LOB.
LOADFROMFILE procedure Loads BFILE data into an internal LOB.
OPEN procedure Opens a LOB (internal, external, or temporary) in the indicated mode.
READ procedure Reads data from the LOB starting at the specified offset.
SUBSTR function Returns part of the LOB value starting at the specified offset.
TRIM procedure Trims the LOB value to the specified shorter length.
WRITE procedure Writes data to the LOB from a specified offset.
WRITEAPPEND procedure Writes a buffer to the end of a LOB.
作者: duolanshizhe 发布时间: 2010-09-10
我是不是没说清楚呀!!!
我要做的是索引分词,实现全文检索。
我要做的是索引分词,实现全文检索。
作者: vhtk 发布时间: 2010-09-10
那就需要将blob的东东全部读出来 然后分词 搞成全文检索
作者: duolanshizhe 发布时间: 2010-09-10
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28