我对 Oracle 很陌生,我创建了一个基本应用程序,它使用 Oracle Text 对索引执行文本搜索。
我的表结构如下:
[ Table: Stores ]
------------------
store_id PK
name VC2
description VC2
然后我的描述字段分配了一个索引:
CREATE INDEX stores_desc_ctx_idx ON stores(description) INDEXTYPE IS ctxsys.context;
我已经在 SQLDeveloper 中验证了 INDEX 存在于我的索引选项卡下,但是当我运行查询时,返回的结果始终为空,即使我可以清楚地看到任何给定行中的数据与输入字符串匹配。
让描述 A:
Local GAME store in Plymouth, selling all the latest titles as well as legacy ones!
让描述B:
Local Morrison's store in Plymouth, selling all the food you could possibly want!
让查询:
SELECT * FROM stores WHERE contains(description, 'GAME') > 0;
我希望查询的结果返回描述 A,但是没有返回结果......我在这里做错了什么?