问题标签 [oracle-text]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
2608 浏览

sql - Oracle text escaping with curly braces and wildcards

I want to be able to escape the search criteria in an Oracle text query using contains and combine the escaped criteria with wildcards to have "doubly truncated" criteria. (I know my indexes may not be setup for ideal performance, but that is superfluous). I want to be able to use the curly braces syntax for best readability but this doesn't work. According to the top answer on this related (but not duplicate) question, curly braces define complete tokens. Is there any way to disable or work around this behavior?

Oracle Text: How to sanitize user input

I would rather avoid having to escape every single character in my search criteria (as per the last select in my code) or try to search the string for special characters since reserved words are also considered "special". (Note that I have no stop words) The following demonstrates my problem. (Unfortunately SQLFiddle does not appear to support Oracle text):

0 投票
2 回答
1026 浏览

sql - Oracle Text - “用户过滤器命令以状态 127 退出”

我正在尝试在包含 blob(文件)的表上使用 oracle 文本模块创建全文索引。

我正在使用以下脚本来创建索引..

我得到了结果:

但是,当我想使用...测试创建的索引时

无论我向选择器添加什么值,我总是得到 0 个结果。

感谢文章: https ://community.oracle.com/thread/434057?start=0&tstart= 0 我在 ctx_user_index_errors 表中发现了错误...

什么可能是这个问题的原因?


编辑:

问题似乎与操作系统有关。Oracle 安装在 Windows 索引上很好,而安装在 Redhat 上的则根本无法工作。

0 投票
0 回答
347 浏览

oracle - 在 oracle 中实现词库的步骤

任何人都可以帮助我了解如何在 oracle 11g 中实现同义词库搜索的步骤。我已阅读 oracle 文本文档,但没有任何帮助。

0 投票
4 回答
4644 浏览

sql - 无法删除并重新创建 oracle 文本索引

我无法删除并重新创建 oracle 文本索引。

即使删除了 cintext 索引,我也可以看到 CTXSYS.CTX_INDEXES 中的条目。

作业和内部表仍在数据库中:

有什么建议么?

0 投票
0 回答
396 浏览

oracle - 创建 Oracle Text 索引时未声明“GET_FUNCTIONAL_CACHE_SIZE”

安装了 11.2.0.3 标准版后,我尝试创建一个文本索引。

索引创建失败并出现以下错误。

第 1 行出现错误:ORA-29874:执行 ODCIINDEXALTER 例程时出现警告

ORA-29960:第 1 行,DRG-50857:获取功能缓存大小时出现 oracle 错误

ORA-06550:第 1 行,第 27 列:PLS-00302:必须声明组件“GET_FUNCTIONAL_CACHE_SIZE”

为什么我会看到此错误以及如何实际设置functional_cache_size

0 投票
0 回答
166 浏览

oracle - 11g R2 上 Oracle 文本名称搜索工具的优化

我试图弄清楚如何使用 11g R2 上的 Oracle Text Name Search Facility 获得合理的性能。

为了测试,我创建了一个带有 objectid 和全名的表,从现有的表中填充了大约。5,400,000 行:

然后我设置数据存储和节组的首选项,如下所示:

最后创建上下文索引:

到目前为止,一切都很好。但是,查询速度很慢。做这样的选择:

可能需要几分钟,并且响应时间似乎随着查询中名称的数量而增加。

我尝试使用 Oracle 文档建议的各种查询提示,即:

  • FIRST_ROWS(50)
  • DOMAIN_INDEX_SORT
  • 并联(8)

但它似乎并没有太大的区别(虽然真的很难衡量,因为第二次执行相同的查询执行得更快)。

0 投票
2 回答
100 浏览

oracle - Weird behavior of Oracle Text

I'm getting a weird behaviour using Oracle Text. I have created the following table:

and populated the table with the following data:

I've then created the index:

If I run

everything works fine as Oracle Text correctly returns

However, if I run

it returns

instead of returning the very same result.

0 投票
1 回答
62 浏览

oracle - Oracle 中的文本搜索

我创建了一个表

我插入了包含代表简历的 Word 2013 文档的值。简历的正文是

然后我创建了一个文本索引

当我运行查询

我得到了结果,但是当我搜索“我的”这个词时,我没有得到任何结果

也不

返回结果

0 投票
2 回答
973 浏览

sql - 使用通配符和点查询与 Oracle Text 索引不匹配的数据

在文本搜索中将通配符与点结合使用时,我的查询找不到匹配的行。

例如:

我想在 MY_TABLE 中找到 ITEM_NUMBER 列是“1234.1234”的行

这确实找到了行:

这没有找到行:

我不明白为什么,因为根据 Oracle,点不是必须转义的特殊字符。

我该如何处理这种情况?

0 投票
0 回答
119 浏览

oracle10g - 使用 xml 和 html 标记对列执行 Oracle Text 搜索

我做了一些在线阅读,但似乎无法找到我正在寻找的答案。这可能是因为我以错误的方式处理这个问题。我正在使用 Oracle 10g。

我有带有列的表 xyz:

XML 列包含 xml 和 html 标记。IE。

创建了一个索引:

当我执行下面的查询时,我没有得到我期望的结果,因为其中一个词包含在 html 标记中。

*请注意,字符串可以存在于任何节点中,因此 inpath 可能不是一个合适的选项。

有没有办法创建一个索引来忽略 html 标签以便返回结果?