Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Oracle Intermedia Search Query
> 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
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
![]() |
![]() |