Oracle Text Reference Guide
Total Page:16
File Type:pdf, Size:1020Kb
Oracle® Text Reference 10g Release 1 (10.1) Part No. B10730-01 December 2003 Oracle Text Reference, 10g Release 1 (10.1) Part No. B10730-01 Copyright © 2003 Oracle Corporation. All rights reserved. Primary Author: Colin McGregor Contributors: Omar Alonso, Shamim Alpha, Edwin Balthes, Steve Buxton, Chung-Ho Chen, Jack Chen, Yun Cheng, Michele Cyran, Paul Dixon, Mohammad Faisal, Roger Ford, Elena Huang, Garrett Kaminaga, Ji Sun Kang, Ciya Liao, Wesley Lin, Bryn Llewellyn, Yasuhiro Matsuda, Valarie Moore, Takeshi Okawa, Gerda Shank, Qunong Xiao, 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 Gist, Oracle Store, 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 ............................................................................................................... xvii Preface.......................................................................................................................................................... xix Audience ............................................................................................................................................... xix Organization......................................................................................................................................... xix Related Documentation ..................................................................................................................... xxii Conventions........................................................................................................................................ xxiii Documentation Accessibility ............................................................................................................ xxv What's New in Oracle Text? ........................................................................................................ xxvii Oracle Database 10g R1 New Features .......................................................................................... xxvii Security Improvements.................................................................................................................... xxvii Classification and Clustering .......................................................................................................... xxvii Indexing ............................................................................................................................................ xxviii Language Features............................................................................................................................. xxxi Querying ............................................................................................................................................ xxxii Document Services .......................................................................................................................... xxxiii 1 SQL Statements and Operators ALTER INDEX .................................................................................................................................... 1-2 ALTER TABLE: Supported Partitioning Statements.................................................................. 1-18 CATSEARCH .................................................................................................................................... 1-25 CONTAINS........................................................................................................................................ 1-34 CREATE INDEX ............................................................................................................................... 1-43 iii DROP INDEX ................................................................................................................................... 1-65 MATCHES ......................................................................................................................................... 1-66 MATCH_SCORE............................................................................................................................... 1-68 SCORE................................................................................................................................................. 1-69 2 Oracle Text Indexing Elements Overview............................................................................................................................................... 2-1 Creating Preferences..................................................................................................................... 2-2 Datastore Types .................................................................................................................................. 2-3 DIRECT_DATASTORE ............................................................................................................... 2-3 MULTI_COLUMN_DATASTORE............................................................................................. 2-4 DETAIL_DATASTORE ............................................................................................................. 2-8 FILE_DATASTORE .................................................................................................................... 2-10 URL_DATASTORE ................................................................................................................... 2-12 USER_DATASTORE ................................................................................................................. 2-15 NESTED_DATASTORE............................................................................................................. 2-18 Filter Types......................................................................................................................................... 2-21 CHARSET_FILTER .................................................................................................................... 2-21 INSO_FILTER ............................................................................................................................. 2-23 NULL_FILTER ........................................................................................................................... 2-27 MAIL_FILTER ............................................................................................................................. 2-27 USER_FILTER ............................................................................................................................. 2-30 PROCEDURE_FILTER............................................................................................................... 2-31 Lexer Types......................................................................................................................................... 2-36 BASIC_LEXER............................................................................................................................. 2-36 MULTI_LEXER ........................................................................................................................... 2-46 CHINESE_VGRAM_LEXER ..................................................................................................... 2-48 CHINESE_LEXER......................................................................................................................