Advertisement

06.15.2007 at 04:41AM PDT, ID: 22636069
[x]
Attachment Details

Problem with Oracle's CTX_DOC.SNIPPET  function

Asked by ashishanand in Oracle 10.x

Hi,

We have created the following function to highlight matching search terms, the function works fine.

create or replace function search_snippet( indexName varchar2, inRowid varchar2, inTerm varchar2) return varchar2
is
begin
      return CTX_DOC.SNIPPET (indexName, inRowid, inTerm, '<b>', '</b>',  FALSE);
end;

However, CTX_DOC.SNIPPET does not seem to be working properly

For e.g. if the text "<p>Search Function: <br /></p>" is passed as a parameter to the snippet, the output from the snippet is
"p>Search Function: <br /></p>"

NOTE that the starting "<" is missing in the output from the snippet.



Calling the CTX_DOC.SNIPPET directly also has the "<" missing in the output.


Any help is appreciated.

Regards,
Start Free Trial
[+][-]06.22.2007 at 08:12AM PDT, ID: 19342076

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.29.2007 at 05:39AM PST, ID: 20373316

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.02.2007 at 11:39PM PST, ID: 20394187

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Oracle 10.x
Sign Up Now!
Solution Provided By: schwertner
Participating Experts: 2
Solution Grade: A
 
 
[+][-]12.03.2007 at 09:51PM PST, ID: 20401160

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.03.2007 at 09:54PM PST, ID: 20401164

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32