tsearch2::indexed_keywords_p (private)

 tsearch2::indexed_keywords_p [ -object_id object_id ] \
    [ -keywords keywords ]

Defined in packages/tsearch2-driver/tcl/test/tsearch2-driver-procs.tcl

Helper proc to check if the keywords are indexed

Switches:
-object_id (optional)
-keywords (optional)

Partial Call Graph (max 5 caller/called nodes):
%3 aa_log aa_log (public) db_0or1row db_0or1row (public) tsearch2::indexed_keywords_p tsearch2::indexed_keywords_p tsearch2::indexed_keywords_p->aa_log tsearch2::indexed_keywords_p->db_0or1row

Testcases:
No testcase defined.
Source code:
    if {[db_0or1row object_details {
            select fti from txt where object_id=:object_id
    }]} {
        set split_fti [split $fti ']
        foreach keyword $keywords {
            if {$keyword ni $split_fti} {
                aa_log "Keyword ($keyword) not found in fti: $fti"
                return false
            } else {
                aa_log "Keyword ($keyword) found"
            }
        }
        return true
    } else {
        return false
    }
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: