Oracle Text Reference, Release 9.2 Part No
Total Page:16
File Type:pdf, Size:1020Kb
Oracle Text Reference Release 9.2 March 2002 Part No. A96518-01 Oracle Text Reference, Release 9.2 Part No. A96518-01 Copyright © 1998, 2002 Oracle Corporation. All rights reserved. Primary Author: Colin McGregor Contributors: Omar Alonso, Shamim Alpha, Steve Buxton, Chung-Ho Chen, Jack Chen, Yun Cheng, Michele Cyran, Paul Dixon, Mohammad Faisal, Elena Huang, Garrett 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, except to the extent required to obtain interoperability with other independently created software or as specified by law, 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, Gist, Oracle Store, Oracle8, Oracle8i, Oracle9i, PL/SQL, SQL*Net and SQL*Plus 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 ALTER TABLE: Supported Partitioning Statements.................................................................. 1-13 CATSEARCH .................................................................................................................................... 1-17 CONTAINS........................................................................................................................................ 1-24 CREATE INDEX................................................................................................................................ 1-29 DROP INDEX ................................................................................................................................... 1-48 MATCHES ......................................................................................................................................... 1-49 SCORE ................................................................................................................................................ 1-51 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 iii URL_DATASTORE ................................................................................................................... 2-12 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 CHINESE_LEXER....................................................................................................................... 2-48 JAPANESE_VGRAM_LEXER................................................................................................... 2-48 JAPANESE_LEXER .................................................................................................................... 2-49 KOREAN_LEXER ....................................................................................................................... 2-50 KOREAN_MORPH_LEXER...................................................................................................... 2-51 USER_LEXER .............................................................................................................................. 2-55 Wordlist Type..................................................................................................................................... 2-71 BASIC_WORDLIST .................................................................................................................... 2-71 BASIC_WORDLIST Example.................................................................................................... 2-75 Storage Types..................................................................................................................................... 2-78 BASIC_STORAGE ...................................................................................................................... 2-78 Section Group Types ........................................................................................................................ 2-81 Section Group Examples............................................................................................................ 2-82 Classifier Types.................................................................................................................................. 2-84 RULE_CLASSIFIER.................................................................................................................... 2-84 Stoplists..............................................................................................................................................