【问题标题】:Set up Oracle Text to index values of multiple columns in Oracle tables设置 Oracle Text 以索引 Oracle 表中多个列的值
【发布时间】:2009-02-21 00:21:47
【问题描述】:

我有一组描述业主信息的 Oracle 表。对于每个所有者,所有者名称和其他文本值存储在多个相关表的多个字段中。我想索引这些字段的内容。我的目标是提供一个字段,用户可以在其中输入关键字来定位所有者。

如何设置 Oracle Text 来完成此操作?

【问题讨论】:

    标签: oracle indexing oracle-text


    【解决方案1】:

    您只需要创建一个多数据存储首选项并将其作为参数传递给索引。

    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

    【讨论】:

      猜你喜欢
      • 2021-01-27
      • 2013-11-05
      • 2020-05-06
      • 1970-01-01
      • 1970-01-01
      • 2010-11-16
      • 2019-01-08
      • 2010-09-08
      • 1970-01-01
      相关资源
      最近更新 更多