CTX_QUERY Package
This chapter describes the CTX_QUERY PL/SQL package you can use for generating query feedback, counting hits, and creating stored query expressions.
The CTX_QUERY package includes the following procedures and functions:
| Name | Description |
|---|---|
| BROWSE_WORDS | Returns the words around a seed word in the index. |
| COUNT_HITS | Returns the number hits to a query. |
| EXPLAIN | Generates query expression parse and expansion information. |
| HFEEDBACK | Generates hierarchical query feedback information (broader term, narrower term, and related term). |
| REMOVE_SQE | Removes a specified stored query expression from the SQL tables. |
| RESULT_SET | Executes a query and generates a result set. |
| RESULT_SET_CLOB_QUERY | Executes a query and generates a result set based on a CLOB query parameter. |
| RESULT_SET_DOCUMENT | Holds the result set document after the CONTAINS query cursor is explicitly closed and if the query template has the <ctx_result_set_descriptor> element. |
| STORE_SQE | Executes a query and stores the results in stored query expression tables. |
| WARM_CACHE | Improves query performance by limiting disk reads from Oracle Text secondary tables. |
Note:
You can use this package only when your index type is CONTEXT. This package does not support the CTXCAT index type.
The APIs in the CTX_QUERY package do not support identifiers that are prefixed with the schema or the owner name.