473,408 Members | 2,888 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Oracle Text: Indexing UTF8 or UTF16

Hello

I am trying to build a system where I can full-text index documents with
UTF8 or UTF16 data using Oracle Text. I am doing the filtering in a
third-party component outside the database, so the I dont need filtering in
Oracle, but only indexing.
If I put file references to the filtered files in the database and index
these (using FILE_DATASTORE), everything works fine. But I rather put the
filtered data in the database, and index it from here (using the
PROCECURE_FILTER). But this gives me some problems when the data is actually
unicode data.
The interface for the procedure in the PROCEDURE_FILTER does not allow the
data to be output as NCLOB or NVARCHAR, but only CLOB or VARCHAR. Indexing
the data directly in the table (using eg. an NULL_FILTER or CHARSET_FILTER)
have the same impact. If I try to index a column of the type NCLOB or
NVARCHAR, the index-creation gives me an error telling me that it is an
invalid column-type.

I have tried to create a database with the UTF8 character set, expecting
that the CLOB column type then could contain the UTF8 data, and that the
indexing then would recognize the unicode characters in the data. This does
not give any errors, but none of the unicode string in the data are
contained in the index, only the strings in english (or ascii, strings with
characters all within 1 byte) are contained in the index afterwards.

Is is not possible to index data directly in a column (using either
CHARSET_FILTER, NULL_FILTER or PROCEDURE_FILTER) that is in UTF8 or UTF16
format?
Thanks in advance for any comments.

/David
Jun 27 '08 #1
1 5338
Server Applications wrote:
Hello

I am trying to build a system where I can full-text index documents with
UTF8 or UTF16 data using Oracle Text. I am doing the filtering in a
third-party component outside the database, so the I dont need filtering in
Oracle, but only indexing.
If I put file references to the filtered files in the database and index
these (using FILE_DATASTORE), everything works fine. But I rather put the
filtered data in the database, and index it from here (using the
PROCECURE_FILTER). But this gives me some problems when the data is actually
unicode data.
The interface for the procedure in the PROCEDURE_FILTER does not allow the
data to be output as NCLOB or NVARCHAR, but only CLOB or VARCHAR. Indexing
the data directly in the table (using eg. an NULL_FILTER or CHARSET_FILTER)
have the same impact. If I try to index a column of the type NCLOB or
NVARCHAR, the index-creation gives me an error telling me that it is an
invalid column-type.

I have tried to create a database with the UTF8 character set, expecting
that the CLOB column type then could contain the UTF8 data, and that the
indexing then would recognize the unicode characters in the data. This does
not give any errors, but none of the unicode string in the data are
contained in the index, only the strings in english (or ascii, strings with
characters all within 1 byte) are contained in the index afterwards.

Is is not possible to index data directly in a column (using either
CHARSET_FILTER, NULL_FILTER or PROCEDURE_FILTER) that is in UTF8 or UTF16
format?
Thanks in advance for any comments.

/David

This ng is dead - repost in cdo.server

--
Regards,
Frank van Bortel
Jun 27 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: pekka niiranen | last post by:
Hi there, I have two files "my.utf8" and "my.utf16" which both contain BOM and two "a" characters. Contents of "my.utf8" in HEX: EFBBBF6161 Contents of "my.utf16" in HEX: FEFF6161
4
by: susmita_ganguly | last post by:
Hi I am trying to upgrade from oracle 8i to oracle 9i on the same server ..I don't know much abt migration . Can anyone help me out. Thanks. Susmita
12
by: Chris Mullins | last post by:
I'm implementing RFC 3491 in .NET, and running into a strange issue. Step 1 of RFC 3491 is performing a set of mappings dicated by tables B.1 and B.2. I'm having trouble with the following...
40
by: Peter Row | last post by:
Hi all, Here is my problem: I have a SQL Server 2000 DB with various NVarChar, NText fields in its tables. For some stupid reason the data was inserted into these fields in UTF8 encoding. ...
12
by: Adam J. Schaff | last post by:
I am writing a quick program to edit a binary file that contains file paths (amongst other things). If I look at the files in notepad, they look like: ...
1
by: Isa Karbstein | last post by:
Hi NG, we are using MS-Access 2002 as a frontend for Oracle Databases versions 8i and 10g. Now I have a problem with the connected tables of the 10g database. In Access all text fields are shown...
1
by: jrs_14618 | last post by:
Hello All, This post is essentially a reply a previous post/thread here on this mailing.database.myodbc group titled: MySQL 4.0, FULL-TEXT Indexing and Search Arabic Data, Unicode I was...
2
by: Vinod Sadanandan | last post by:
All, Below listed are the new features in Oracle 11g ,please join me in this discussion to generate a testcase and analyze each of the listed features . Precompilers:...
7
by: tshad | last post by:
I have a program in 2005 that is reading a text file removing text and then writing it back out again. It removes lines that start with PRINT. This program has worked fine for months. Now all...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.