SQE Example
The following example creates a stored query expression called disaster that searches for documents containing the words tornado, hurricane, or earthquake:
begin
ctx_query.store_sqe('disaster', 'tornado | hurricane | earthquake');
end;
To execute this query in an expression, write your query as follows:
SELECT SCORE(1), title from news
WHERE CONTAINS(text, 'SQE(disaster)', 1) > 0
ORDER BY SCORE(1);
See Also: Oracle Text Reference to learn more about the syntax of CTX_QUERY.STORE_SQE