Oracle Text Reference, Release 9.0.1 Part No
Total Page:16
File Type:pdf, Size:1020Kb
Oracle Text Reference Release 9.0.1 June 2001 Part No. A90121-01 Oracle Text Reference, Release 9.0.1 Part No. A90121-01 Copyright © 1996, 2001, Oracle Corporation. All rights reserved. Primary Author: Colin McGregor Contributors: Omar Alonso, Shamim Alpha, Steve Buxton, Chung-Ho Chen, Yun Cheng, Michele Cyran, Paul Dixon, Mohammad Faisal, Elena Huang, Garret Kaminaga, Ji Sun Kang, Bryn Llewellyn, Wesley Lin, Yasuhiro Matsuda, Gerda Shank, and Steve Yang. The Programs (which include both the software and documentation) contain proprietary information of Oracle Corporation; they are provided under a license agreement containing restrictions on use and disclosure and are also protected by copyright, patent, and other intellectual and industrial property laws. Reverse engineering, disassembly, or decompilation of the Programs is prohibited. The information contained in this document is subject to change without notice. If you find any problems in the documentation, please report them to us in writing. Oracle Corporation does not warrant that this document is error free. Except as may be expressly permitted in your license agreement for these Programs, no part of these Programs may be reproduced or transmitted in any form or by any means, electronic or mechanical, for any purpose, without the express written permission of Oracle Corporation. If the Programs are delivered to the U.S. Government or anyone licensing or using the programs on behalf of the U.S. Government, the following notice is applicable: Restricted Rights Notice Programs delivered subject to the DOD FAR Supplement are "commercial computer software" and use, duplication, and disclosure of the Programs, including documentation, shall be subject to the licensing restrictions set forth in the applicable Oracle license agreement. Otherwise, Programs delivered subject to the Federal Acquisition Regulations are "restricted computer software" and use, duplication, and disclosure of the Programs shall be subject to the restrictions in FAR 52.227-19, Commercial Computer Software - Restricted Rights (June, 1987). Oracle Corporation, 500 Oracle Parkway, Redwood City, CA 94065. The Programs are not intended for use in any nuclear, aviation, mass transit, medical, or other inherently dangerous applications. It shall be the licensee's responsibility to take all appropriate fail-safe, backup, redundancy, and other measures to ensure the safe use of such applications if the Programs are used for such purposes, and Oracle Corporation disclaims liability for any damages caused by such use of the Programs. Oracle is a registered trademark, and ConText, Oracle Text, Oracle8, Oracle8i, Oracle9i, Oracle Call Interface, PL/SQL, SQL*Plus, and SQL*Loader are trademarks or registered trademarks of Oracle Corporation. Other names may be trademarks of their respective owners. Contents Send Us Your Comments .................................................................................................................. xv Preface......................................................................................................................................................... xvii What’s New in Oracle Text?........................................................................................................... xxv 1 SQL Statements and Operators ALTER INDEX .................................................................................................................................... 1-2 CATSEARCH .................................................................................................................................... 1-13 CONTAINS........................................................................................................................................ 1-18 CREATE INDEX................................................................................................................................ 1-21 DROP INDEX ................................................................................................................................... 1-36 MATCHES ......................................................................................................................................... 1-37 SCORE ................................................................................................................................................ 1-38 2 Indexing Overview .............................................................................................................................................. 2-2 Creating Preferences .................................................................................................................... 2-2 Datastore Types .................................................................................................................................. 2-3 DIRECT_DATASTORE ............................................................................................................... 2-3 MULTI_COLUMN_DATASTORE............................................................................................. 2-4 DETAIL_DATASTORE ............................................................................................................... 2-8 FILE_DATASTORE .................................................................................................................... 2-11 URL_DATASTORE ................................................................................................................... 2-12 iii USER_DATASTORE .................................................................................................................. 2-16 NESTED_DATASTORE............................................................................................................. 2-20 Filter Types......................................................................................................................................... 2-23 CHARSET_FILTER .................................................................................................................... 2-24 INSO_FILTER.............................................................................................................................. 2-26 NULL_FILTER ........................................................................................................................... 2-30 USER_FILTER ............................................................................................................................. 2-31 PROCEDURE_FILTER............................................................................................................... 2-32 Lexer Types......................................................................................................................................... 2-37 BASIC_LEXER............................................................................................................................. 2-38 MULTI_LEXER ........................................................................................................................... 2-46 CHINESE_VGRAM_LEXER ..................................................................................................... 2-47 JAPANESE_VGRAM_LEXER................................................................................................... 2-48 JAPANESE_LEXER .................................................................................................................... 2-48 KOREAN_LEXER ....................................................................................................................... 2-49 KOREAN_MORPH_LEXER...................................................................................................... 2-50 Wordlist Type..................................................................................................................................... 2-55 BASIC_WORDLIST .................................................................................................................... 2-55 BASIC_WORDLIST Example.................................................................................................... 2-59 Storage Types..................................................................................................................................... 2-62 BASIC_STORAGE ...................................................................................................................... 2-62 Section Group Types ........................................................................................................................ 2-65 Section Group Examples............................................................................................................ 2-66 Stoplists............................................................................................................................................... 2-68 Multi-Language Stoplists........................................................................................................... 2-68 Creating Stoplists........................................................................................................................ 2-68 Modifying the Default Stoplist ................................................................................................. 2-68 System-Defined Preferences ........................................................................................................... 2-70 Data Storage................................................................................................................................. 2-70 Filter.............................................................................................................................................