惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Y
Y Combinator Blog
博客园 - 司徒正美
TaoSecurity Blog
TaoSecurity Blog
Martin Fowler
Martin Fowler
T
Threat Research - Cisco Blogs
Blog — PlanetScale
Blog — PlanetScale
S
Secure Thoughts
博客园 - 三生石上(FineUI控件)
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
K
Kaspersky official blog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Cisco Talos Blog
Cisco Talos Blog
H
Help Net Security
博客园 - 叶小钗
爱范儿
爱范儿
GbyAI
GbyAI
I
Intezer
M
MIT News - Artificial intelligence
Latest news
Latest news
Schneier on Security
Schneier on Security
T
Tor Project blog
Simon Willison's Weblog
Simon Willison's Weblog
I
InfoQ
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
C
CXSECURITY Database RSS Feed - CXSecurity.com
罗磊的独立博客
N
News and Events Feed by Topic
T
The Blog of Author Tim Ferriss
V2EX - 技术
V2EX - 技术
B
Blog
T
Tailwind CSS Blog
N
Netflix TechBlog - Medium
Security Latest
Security Latest
V
V2EX
F
Fortinet All Blogs
Forbes - Security
Forbes - Security
Application and Cybersecurity Blog
Application and Cybersecurity Blog
The Hacker News
The Hacker News
Scott Helme
Scott Helme
P
Privacy International News Feed
P
Palo Alto Networks Blog
H
Heimdal Security Blog
C
Cisco Blogs
T
The Exploit Database - CXSecurity.com
博客园 - Franky
酷 壳 – CoolShell
酷 壳 – CoolShell
G
Google Developers Blog
W
WeLiveSecurity
L
LINUX DO - 最新话题

博客园 - Anson2020

SQL Server 清除数据库日志脚本 让 Firefox 也支持 outerHTML StringSplitOptions Enumeration [转] - Anson2020 Hibernate映射类型对照表 [转] 解决 .setAttribute 添加JS或者CSS 在IE下不起作用. - Anson2020 Oracle 生成 GUID 类型 [转] Internet Explorer 8 Beta 1 已发布并提供下载! Eclipse编写代码可以设置源文件的编码方式UTF-8 [转] .NET 实战SSL安全加密机制 [转] IE Firefox css 差别 [转] 关于Service Unavailable的解决方法 [转] 解决JavaME中的内存泄漏 [转] 转载(正则表达式) Ajax Tree 仿Google和Windows Live的JS+DIV Drag [转] Input的高级用法11例 Asp.Net避免按钮重复点击(转) [转] ASP.NET 缓冲: 技术及最佳实践 [转] 支付宝Payto接口的c#.net实现
[转] ORACLE Text 文本检索
Anson2020 · 2007-11-23 · via 博客园 - Anson2020

ORACLE Text 文本检索:(先要建立CONTEXT或CTXCAT索引,然后如下)(还可以在from前加,SCORE(10)来观察检索到的项目的得分)

1.单词的精确匹配检索
select cbid,title(列名) from emergency(表名) where contains(title,'关于')>0; 是从title中检索含词“关于”的cbid和title字段。

2.多个单词精确匹配
select cbid,title form emergency where contains(title,'关于 AND 请示')>0;是从title中检索含词“关于”和“请示”的上述字段。
也可select cbid,title form emergency where contains(title,'关于 AND 请示',NULL)>0;意思同上,不是检索短语而是两个单词,注意!

3.短语精确匹配
select cbid,title(列名) from emergency(表名) where contains(title,'doctor visits',NULL)>0;将精确匹配doctor visits短语
如果要用AND,OR,MINUS等保留字,应该使用转义符{},如doctor {and} visits

4.搜索互相接近的词语
select cbid,title(列名) from emergency(表名) where contains(title,'关于 NEAR 请示')>0;
select cbid,title(列名) from emergency(表名) where contains(title,'NEAR((关于,请示),10)')>0;  是指指定的两个词在10个词之内

5.在搜索中使用通配符(多字符通配符是%,单字符通配符是-)
select cbid,title(列名) from emergency(表名) where contains(title,'worker%')>0;是检索worker开头的单词,单字通配最多扩展3字符

6.模糊匹配搜索
select cbid,title(列名) from emergency(表名) where contains(title,'?关于')>0;  (前面得加一个问号)

7.使用ABOUT运算符来搜索文档的主题
select cbid,title form emergency where contains(title,'ABOUT(住房)',NULL)>0;
注意以上如果是用CONTEXT索引时,基表更新时文本索引并不更新,为了使索引同步,应该执行CTX_DLL程序包的SYNC_INDEX过程如下:
EXECUTE CTX_DLL.SYNC_INDEX('REVIEW_INDEX');