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: How to markup text using ctx_doc.markup()

Re: How to markup text using ctx_doc.markup()

From: Tabo Tabo <tabotabo221_at_hotmail.com>
Date: 24 Jun 2004 22:47:02 -0700
Message-ID: <95eabd4.0406242147.4006acb7@posting.google.com>


tojo <Tojo_at_hotmail.com> wrote in message news:<MPG.1b44df2ef7842689896ef_at_news.t-online.de>...
> In article <95eabd4.0406240121.153bce2e_at_posting.google.com>, tabotabo221
> @hotmail.com says...
> > http://download-west.oracle.com/docs/cd/A91202_01/901_doc/text.901/a90121/cqoper3.htm#19566
> >
> > According to the above URL, "Oracle retrieves documents that contain
> > concepts that are related to your query word or phrase. For example,
> > if you issue an ABOUT query on California, the system might return
> > documents that contain the terms Los Angeles and San Francisco, which
> > are cities in California. The document need not contain the term
> > California to be returned in this ABOUT query."
> >
> > I want to ask whether I can highlight the word "Los Angeles" and "San
> > Francisco" when I pass the queryString "California" to the markup
> > function??
> >
> > Does anyone know how to do it??
> >
> > Thank you very much.
> >
> Did you try sending 'about(California)' as the query string? That should
> markup the right keywords.
>
> -- Tom

Hello Tom,

Thanks for you reply!!

I tried the following SQL:
begin
CTX_DOC.MARKUP(INDEX_NAME => 'tmptest_Ind', TEXTKEY =>'1', TEXT_QUERY => 'ABOUT(California)', RESTAB => 'mres', QUERY_ID=>'1', STARTTAG=>'<B><FONT COLOR=RED>', ENDTAG=>'</FONT></B>'); end;

and there is the result:
before markup():



California 12345 Los Angeles and San Francisco

after markup():



<B><FONT COLOR=RED>California</FONT></B> 12345 Los Angeles and San Francisco

this is my EXPECTED RESULT:



<B><FONT COLOR=RED>California</FONT></B> 12345 <B><FONT COLOR=RED>Los Angeles</FONT></B> and <B><FONT COLOR=RED>San Francisco</FONT></B>

ctx_doc.markup() seems perform an exact match only!!!

Is there anyone know how to get the about EXPECTED RESULT??? Received on Fri Jun 25 2004 - 00:47:02 CDT

Original text of this message

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