Advertisement
Guest User

Untitled

a guest
Jan 25th, 2020
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. -- 17
  2. drop index TEXT_INDEX;
  3.  
  4. begin
  5. ctx_ddl.create_preference('lex_z_m','BASIC_LEXER');
  6. ctx_ddl.set_attribute('lex_z_m',
  7. 'printjoins', '_- ');
  8. ctx_ddl.set_attribute ('lex_z_m',
  9. 'index_text', 'YES');
  10. end;
  11.  
  12. create index indeks_z_myslnikami
  13. on QUOTES( TEXT ) indextype is ctxsys.context
  14. parameters ( 'LEXER lex_z_m' );
  15.  
  16. -- 18
  17. select Q.TEXT
  18. from QUOTES Q
  19. where CONTAINS(Q.TEXT,'humans')>0;
  20.  
  21. -- 19
  22. select Q.TEXT
  23. from QUOTES Q
  24. where contains(Q.TEXT, 'non\-humans')>0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement