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