我有一组 Oracle 表,用于描述有关属性(property)所有者的信息。对于每个所有者,所有者名称和其他文本值存储在多个相关表的多个字段中。我想索引这些字段的内容。我的目标是提供一个单一字段,用户可以在其中输入关键字来查找所有者。
如何设置 Oracle Text 来完成此任务?
最佳答案
您只需创建一个多数据存储首选项并将其作为参数传递给索引。
begin
ctx_ddl.create_preference('my_multi', 'MULTI_COLUMN_DATASTORE');
ctx_ddl.set_attribute('my_multi', 'columns', 'column1, column2, column3');
end;
create index myindex on mytable(docs)
indextype is ctxsys.context
parameters ('DATASTORE my_multi');
http://download.oracle.com/docs/cd/B19306_01/text.102/b14217/ind.htm#sthref281
关于oracle - 设置 Oracle Text 以索引 Oracle 表中多列的值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/571758/