, , , Oracle, Oracle Text ( ). , CONTAINS Oracle Text, , , " ". CONTAINS , Levenshtein . Oracle Text FUZZY.
Oracle .
, , - . , :
, / , ( )
: , , , . Oracle Text CONTAINS, MATCHES (. 4.1.3), : , , . , ( ):
create table queries (
query_id number,
query_string varchar2(80)
);
// Here we populate the table with the keywords
insert into queries values (1, 'oracle');
insert into queries values (2, 'larry or ellison');
insert into queries values (3, 'oracle and text');
insert into queries values (4, 'market share');
create index queryx on queries(query_string)
indextype is ctxsys.ctxrule;
// This query will return the ids of the matched keywords
select query_id from queries
where matches(query_string,
'Oracle announced that its market share in databases
increased over the last year.')>0
, , .
Edit2: , , .