Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: How to markup text using ctx_doc.markup()
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 follwing 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 here is the result:
before markup():
after markup():
this is my EXPECTED result:
However, markup function seems performed an exact match only!
Is there anyone know how to get the above Expected Result?? Received on Fri Jun 25 2004 - 00:40:58 CDT
![]() |
![]() |