Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9145043
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T10:24:57+00:00 2026-06-17T10:24:57+00:00

I am using Oracle 11g and Oracle Text for a web search engine. I

  • 0

I am using Oracle 11g and Oracle Text for a web search engine.

I have now created & text-indexed a CLOB column Keywords which contains space-separated words. This allowed me to extend the search, as Oracle Text will return the rows that have one or more keywords stored in that column. The contents of the column are hidden from the user, and is used only to “extend” the search. This is working as intended.

But now I need to support multiple words or even complete sentences. With the current configuration, Oracle Text will search only for individual keyword. How do I need to store the phrases and configure Oracle Text so that it will search for whole phrases (exact match is preferred, but fuzzy matching is fine too)?

Column content example of two rows(semi-colon seperated values):

"hello, hello; is there anybody out there?; nope;"
"just the; basic facts;"

I found a similar question: Searching a column with comma separated values, except that I need a solution for Oracle 11g with it’s freetext search functionality.

Possible solutions:

1st solution: I was thinking of redesigning the DB as follows. I’d make a new table Keywords(pkID NUMBER, nonUniqueID NUMBER, singlePhrase VARCHAR2(100 BYTE)). And I’d change the previous column Keyword to KeywordNonUniqueID, which would hold the ID (instead of a list of values). At search-time I’d INNER JOIN with the new Keyword table. The problem with this solution is that I’ll get multiple rows that contains the same data except the phrase. I assume this will destroy the ranking?

2nd solution: Is it possible to store phrases as a XML in the original Keyword column, and somehow tell Oracle Text to search within the XML?

3rd solution: ?

Note that, generally, there won’t be a lot of phrases (less than 100), nor will they be long (a single phrase will have up to 5 words).

Also note that I am currently using CONTAINS, and a few of its operators, for my full-text searching needs.

EDIT: This https://forums.oracle.com/forums/thread.jspa?messageID=10791361 discussion that almost solves my problem, but it also matches the individual words, not the whole phrase (exact matching).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T10:24:59+00:00Added an answer on June 17, 2026 at 10:24 am

    Oracle supports searching of phrases by default.
    In docs we can see this

    4.1.4.1 CONTAINS Phrase Queries

    If multiple words are contained in a query expression, separated only
    by blank spaces (no operators), the string of words is considered a
    phrase and Oracle Text searches for the entire string during a query.

    For example, to find all documents that contain the phrase
    international law, enter your query with the phrase international law.

    Did I answer your question or misunderstand you?

    P.S. It seems to me that the solution is convert

    “hello, hello; is there anybody out there?; nope;”
    “just the; basic facts;”

    to

    “hello, hello aa is there anybody out there? aa nope aa” “just the aa basic
    facts aa”

    and search with CONTAINS for the phrase “is there anybody out there? aa”

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using oracle 11g sql developer I have a varchar2 column with dates as
I want to extract text from a column using regular expressions in Oracle 11g.
We are using Oracle 11g and we have a table with a timestamp column
Using Oracle 11g release 2, the following query gives an ORA-01790: expression must have
I'm using oracle 11g. I'm inserting date and time using function SYSDATE into column
I'm developing a web service using NHibernate, WCF and Oracle 11g R1. The web
I'm using Oracle 11g. I've tried the Oracle Text functionality and so far I
In my project using oracle 11g and .net 2010. DAL is web service to
I am using oracle 11g and have written a stored procedure which stores values
I am using Oracle 11g, and I have a lot of stored procedure code

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.