This content has been marked as final. Show 3 replies
and I want to extract a snippet that consists only of the content of a B Element that contains the search term "foo2", i.e. it should return
<A> <B>foo1 bar</B> <B>foo2 bar</B> <B>foo3 bar</B> </A>
select ctx_doc.snippet( index_name => 'TEST_INDEX', textkey => 'PrimaryKey', text_query => 'foo2 within B' ) from dual;
I know that I can restrict the snippet to a certain length, but it is possible to restrict the snippet to the content of tag which is mentioned in the search expression?
foo1 bar <b>foo2</b> bar foo3 bar