Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Oracle Text and indexes

Re: Oracle Text and indexes

From: Steve Howard <stevedhoward_at_gmail.com>
Date: 22 Jun 2006 15:42:51 -0700
Message-ID: <1151016171.562754.230630@i40g2000cwc.googlegroups.com>

RicercatoreSbadato wrote:
> How can I know if my text in the db has been indexed ?
>
> If I use
>
> select * from dr$idx_docs$i;
>
> (idx_docs is the context index)
>
> I have all the things that my index ha indexed... but it's not human
> readable. Are there other ways?

I wouldn't go to the DR$ tables. Just issue a contains query...

SQL> create table t0622(c varchar2(100));

Table created.

SQL> insert into t0622 values('qwerty');

1 row created.

SQL> select * from t0622 where contains(c,'qwerty') > 0; select * from t0622 where contains(c,'qwerty') > 0 *
ERROR at line 1:
ORA-20000: Oracle Text error:
DRG-10599: column is not indexed

SQL> create index t0622_i on t0622(c) indextype is ctxsys.context;

Index created.

SQL> select * from t0622 where contains(c,'qwerty') > 0;

C


qwerty

SQL> Regards,

Steve Received on Thu Jun 22 2006 - 17:42:51 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US