faq::fts::datasource (private)
faq::fts::datasource faq_id
Defined in packages/faq/tcl/faq-sc-procs.tcl
returns a datasource for a faq event to be indexed by the full text search engine.
- Parameters:
- faq_id (required)
- Author:
- davis@xarg.net
- Created:
- 2004-04-01
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: set title [db_string name {select faq_name from faqs where faq_id = :faq_id} -default "FAQ $faq_id"] set content {} db_foreach qa { select question, answer from faq_q_and_as where faq_id = :faq_id } { append content "Q: $question\n\nA: $answer\n\n" } return [list object_id $faq_id title $title content $content keywords {} storage_type text mime text/plain ]XQL Not present: Generic, PostgreSQL, Oracle