Skip to Main Content

Java and JavaScript in the Database

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Facing problem with special characters in FTS.

Aksi kisuNov 16 2023 — edited Nov 16 2023

Hi.

I'm facing a real annoying problem with text search query, and everything I've tried failed.

I am trying to build a search functionality using FTS. Suppose if a user searches for ‘spec’, he/she should be able retrieve all documents that has either ‘spec’ or beyond ex ‘speci’,'speck' etc.

My query looks something like this select index from abc where contains(data,?,1) > 0 ps.setString('spec%',1);

The problem I am facing is when the user searches for keyword that contains some special keywords like !123A{}%4B it throws me

SQL Error [29902] [99999]: ORA-29902: error in executing ODCIIndexStart() routine
ORA-20000: Oracle Text error:
DRG-50901: text query parser syntax error on line 1, column 13

and it does not throw error for all the special characters, may I know why only specific char and not all and how do I resolve it?
I have tried escaping them using {} and is does not work. Same with backslash \.
The only solution I was able think was to replace all the special char in my searchtext before setting it into the query, but as I am new to java has not idea how to do so.
Can anyone help me with this?

Thank you

Comments

Answer

Yes. Async, semi-sync, and InnoDB Cluster.

Marked as Answer by 3602098 · Sep 27 2020
Basharat Hussain Oct 16 2024

Dear @dave-stokes-mysql-community-team-oracle

I am facing a problem please Guide me.

I have deployed two MySQL Nodes version 8. I am trying to async MySQL nodes, the replication complete successful as long as a user create or some action performed from the application. When an action is perform from the Application . On the slave node the following error occur.

Before an action perform from the Application everything working fine replication from master to slave working as expected.

Please Guide me.

Thank You in Advance.
Basharat Hussain.

L. Fernigrini Oct 16 2024

You are replying to a 5 year old “solved” thread with a new problem…Please do not hijack existing threads, open a new one with the appropriate details. I'm closing this one.

1 - 3

Post Details

Added on Nov 16 2023
0 comments
202 views