473,799 Members | 3,671 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_FILTE R). But this gives me some problems when the data is actually
unicode data.
The interface for the procedure in the PROCEDURE_FILTE R 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_FILTE R) that is in UTF8 or UTF16
format?
Thanks in advance for any comments.

/David
Jun 27 '08 #1
1 5359
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_FILTE R). But this gives me some problems when the data is actually
unicode data.
The interface for the procedure in the PROCEDURE_FILTE R 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_FILTE R) 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
2597
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
19997
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
4117
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 mappings though, and it seems like a shortcoming of the .NET framework: When I see Unicode value 0x10400, I'm supposed to map it to value 0x10428. This list goes on (the left colulmn is the existing value, the right column
40
3254
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. However when you retrieve these values into a dataset and ToString() them
12
5934
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: <gibberish>file//g:\pathtofile1<gibberish>file//g:\pathtofile2<gibberish> etc. I want to remove the "g:\" from the file paths. I wrote a console app that successfully reads the file and writes a duplicate of it, but fails for some reason to do the "replacing" of the "g:\". The code...
1
2751
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 with a wrong fieldsize. (e.g. Varchar(10) is shown as Text(30) in Access). The connected tables of the 8i database are correct. I am using the Oracle ODBC driver version 9.02.00.00.
1
4857
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 wondering if anybody has experienced the same issues
2
14250
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: Additional Array INSERT and SELECT Syntax Support by Pro*C/C++ and Pro*COBOL Precompilers: Dynamic SQL Statement Caching in Pro*C/C++ and Pro*COBOL Precompilers: Fix Execution Plan in Pro*C/C++ and Pro*COBOL Precompilers: Flexible B Area Length...
7
1640
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 of a sudden, it is reading a straight text file and adding a null after each character it reads in. Why is that? The original file doesn't have nulls in them. The code is: ******************************************** using System;
0
9687
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9543
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10488
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10237
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10029
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9077
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5467
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4144
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3761
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.