Indexing Mixed-Character Set Columns
Gist: must idicate the charset for different charset document
[@more@]A mixed character set column is one that stores documents of different character sets. For example, a text table might store some documents in WE8ISO8859P1 and others in UTF8.
To index a table of documents in different character sets, you must create your base table with a character set column. In this column, you specify the document character set on a per-row basis. To index the documents, Oracle converts the documents into the database character set.
Character set conversion works with the CHARSET_FILTER
. When the charset column is NULL
or not recognized, Oracle assumes the source character set is the one specified in the charset attribute.
Note:
Character set conversion also works with the INSO_FILTER
when the document format column is set to TEXT
.
Indexing Mixed-Character Set Example
For example, create the table with a charset column:
create table hdocs (
id number primary key,
fmt varchar2(10),
cset varchar2(20),
text varchar2(80)
);
Insert plain-text documents and name the character set:
insert into hdocs values(1, 'text', 'WE8ISO8859P1', '/docs/iso.txt');
insert in hdocs values (2, 'text', 'UTF8', '/docs/utf8.txt');
commit;
Create the index and name the charset column:
create index hdocsx on hdocs(text) indextype is ctxsys.context
parameters ('datastore ctxsys.file_datastore
filter ctxsys.charset_filter
format column fmt
charset column cset');
CHARSET_FILTER
. When the charset column is NULL
or not recognized, Oracle assumes the source character set is the one specified in the charset attribute.INSO_FILTER
when the document format column is set to TEXT
.來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/46332/viewspace-1007703/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Indexing on Virtual ColumnsIndex
- CSS columnsCSS
- DtypeWarning: Columns () have mixed types. Specify dtype option on import or set low_memory=False.ImportFalse
- oracle drop columnsOracle
- CSS3 columnsCSSS3
- MySQL COLUMNS分割槽MySql
- 德布魯因序列與indexing 1Index
- creating indexing for SQL tunningIndexSQL
- CSS columns 多列布局CSS
- F. Color Rows and Columns
- DRUID: kafka-indexing-service如何使用UIKafkaIndex
- Oracle 11G Virtual ColumnsOracle
- sqlserver查詢table,columns資訊SQLServer
- 理解SAP BW 中的 Bit-Map IndexingIndex
- CSS columns多列布局瀑布流CSS
- PostgreSQL DBA(53) - PG 12 Generated columnsSQL
- 11g_NotNull_Columns_with_Default_ValuesNull
- Datatables學習筆記——columns.render筆記
- CSS Masonry Layouts【一】之 multi-columnsCSS
- 轉摘:EXCHANGE PARTITION those pesky columns
- Recipe 5.2. Listing a Table's Columns
- Indexing, Selecting & Assigning(pandas學習二)Index
- columns陣列形式展示不同列資料陣列
- CSS3之多列布局columns詳解CSSS3
- Recipe 4.7. Blocking Inserts to Certain ColumnsBloCAI
- webstorm 底部一直在閃爍顯示indexingWebORMIndex
- Set
- set /?
- lombok get/set 與 JavaBean get/setLombokJavaBean
- JQuery Datatables Columns API 引數詳細說明jQueryAPI
- 方便自我學習的檢視:dict_columns !
- 高效的SQL(bitmap indexes optimize low cardinality columns)SQLIndex
- [20221111]CBO and Partial indexing.txtIndex
- SET NEWNAME FOR
- set -e
- Jet Set
- MySQL information_schema.columns表查詢慢原因分析MySqlORM
- leetcode講解--944. Delete Columns to Make SortedLeetCodedelete