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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Oracle Intermedia Search Query

Re: Oracle Intermedia Search Query

From: Marin Dimitrov <marin_at_sirma.bg>
Date: Fri, 06 Apr 2001 07:26:51 -0700
Message-ID: <F001.002E3F9C.20010406070610@fatcity.com>

> Dear DBA Gurus,
>
> I have the following records in Oracle 8.1.6 database (CLOB fields).
>
> id title
> 1 kid's
> 2 kid and teen
> 3 kid's
> 4 kid's and teens
>
> If I write a query as
> select * from site where contains(title,'kid''s') > 0 then it
> displays all the 4 records where are I want only records 1, 3 and 4 only.
> If I try with: select * from site where contains(title, 'kid||chr(39)||s')
>
> 0 then it is returning error ORA - 29902. How do I write the query in
order
> to return the correct result? Any help in this regard will be very much
> appreciated.
>

'S is a stop word (which is not indexed), so for the index server all the 4 rows are correct results of the query.

Consult the manuals for setting the stop list preferences (a search for "BASIC_STOPLIST" should give u a hint) - probably you'll be able to set the stop list preferences in a way that suits your needs

hth,

    Marin



"When someone is seeking, it happens quite easily that he only sees the thing that he is seeking; that he is unable to find anything, unable to absorb anything, because he is only thinking of the thing he is seeking, because he is obsessed with his goal. Seeking means: to have a goal; but finding means: to be free, to be receptive, to have no goal. ..."
                                Herman Hesse, "Siddhartha"


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Marin Dimitrov
  INET: marin_at_sirma.bg

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Fri Apr 06 2001 - 09:26:51 CDT

Original text of this message

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