8.4 Presenting and Highlighting Documents
Typically, a query application enables the user to view the documents returned by a query. The user selects a document from the hitlist, and then the application presents the document in some form.
With Oracle Text, you can display a document in different ways, such as highlighting either the words of a word query or the themes of an ABOUT
query in English.
You can also obtain gist (document summary) and theme information from documents with the CTX_DOC
PL/SQL package.
Table 8-2 describes the different output you can obtain and which procedure to use to obtain each type.
Table 8-2 CTX_DOC Output
Output | Procedure |
---|---|
Plain-text version, no highlights |
|
HTML version of document, no highlights |
|
Highlighted document, plain-text version |
|
Highlighted document, HTML version |
|
Highlighted offset information for plain-text version |
|
Highlighted offset information for HTML version |
|
Theme summaries and gist of document |
|
List of themes in document |
|
See Also: