search::content_get (private)

 search::content_get _txt content mime storage_type object_id

Defined in packages/search/tcl/search-procs.tcl

Parameters:
_txt (required)
content (required)
holds the filename if storage_type=file holds the text data if storage_type=text holds the lob_id if storage_type=lob
mime (required)
storage_type (required)
object_id (required)
Author:
Neophytos Demetriou

Partial Call Graph (max 5 caller/called nodes):
%3 packages/search/www/search.tcl packages/search/ www/search.tcl search::content_get search::content_get packages/search/www/search.tcl->search::content_get search::indexer search::indexer (private) search::indexer->search::content_get content::revision::get_cr_file_path content::revision::get_cr_file_path (public) search::content_get->content::revision::get_cr_file_path db_blob_get db_blob_get (public) search::content_get->db_blob_get search::content_filter search::content_filter (private) search::content_get->search::content_filter

Testcases:
No testcase defined.
Source code:
    upvar $_txt txt
    set txt ""
    set passing_style string

    # lob and file are not currently implemented
    switch $storage_type {
        text {
            set data $content
        }
        file {
            set data [content::revision::get_cr_file_path -revision_id $object_id]
            set passing_style file
        }
        lob {
            set data [db_blob_get get_lob_data {}]
        }
    }

    search::content_filter -passing_style $passing_style txt data $mime
XQL Not present:
PostgreSQL
Generic XQL file:
<fullquery name="search::content_get.get_file_data">
    <querytext>
	    select :content as content,
                   'file' as storage_type
            from dual
        </querytext>
</fullquery>

<fullquery name="search::content_get.get_lob_data">
    <querytext>
            select :content as content,
                   'lob' as storage_type
            from dual
        </querytext>
</fullquery>
packages/search/tcl/search-procs.xql

Oracle XQL file:
packages/search/tcl/search-procs-oracle.xql

[ hide source ] | [ make this the default ]
Show another procedure: