Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Full text indexes and hints

Re: Full text indexes and hints

From: Daniel Morgan <damorgan_at_x.washington.edu>
Date: Mon, 06 Sep 2004 11:46:52 -0700
Message-ID: <1094496473.998991@yasure>


> I need to query the contract_text column (a bunch of text) case sensitively
> and case insensitively using Oracle full-text via the CONTAINS function.
> When you "build" a full text index it can be created either case
> insensitively (this is the default) or case sensitively.
> Therefore if I want to query the column in a case sensitive and insensitive
> manner I need two "full text indexes" (I think :-))
> So what I want to do is:
>
> SELECT id FROM contracts
> WHERE CONTAINS(contract_text, 'dog')>0 -- case insensitive
> AND CONTAINS (contract_text, 'Dog')>0 -- case sensitive

I think you need to seriously reconsider what you are asking.

WHERE CONTAINS(contract_text, 'dog')>0 -- case insensitive

will, by definition, get every occurence of the letter D followed by the letter O followed by the letter G no matter what case they are. So you case sensitive search is both redundant and pointless.

-- 
Daniel A. Morgan
University of Washington
damorgan_at_x.washington.edu
(replace 'x' with 'u' to respond)
Received on Mon Sep 06 2004 - 13:46:52 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US