File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
data-platform/core-converged-db/database-23c/database-search Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change
1
+ REM Script for 23c: 6 - add- more- data- sources .sql
2
+
3
+ -- Let's add the table CUSTOMERS
4
+
5
+ execute DBMS_SEARCH .ADD_SOURCE (index_name => ' SEARCH_PRODUCTS' , source_name => ' CUSTOMERS' );
6
+
7
+ -- Search for fuzzy(jon)
8
+
9
+ SELECT METADATA output from SEARCH_PRODUCTS WHERE CONTAINS(data,' fuzzy(jon)' )> 0 ;
10
+
11
+ -- Let's add a row to the table CUSTOMERS und search for it again.
12
+
13
+ insert into customers
values (
1000 ,
' [email protected] ' ,
' John Johnson' );
14
+
15
+ SELECT METADATA output from SEARCH_PRODUCTS WHERE CONTAINS(data,' fuzzy(jon)' )> 0 ;
16
+
17
+ -- You will find the new row when you commit the change.
18
+
19
+ commit ;
20
+
21
+ -- search again
22
+ SELECT METADATA output from SEARCH_PRODUCTS WHERE CONTAINS(data,' fuzzy(jon)' )> 0 ;
You can’t perform that action at this time.
0 commit comments