/program/modules/althing/althing_search.php - interface to the search-part of this module
This file defines the interface with this module for searching content. The interface consists of a (temporary) table and this function:
The function is called whenever module content is to be searched. At that point the helper table, which is called 'search_nodes', exists and is populated.
search this module's content in selected nodes for keywords in $qwords
This interface is documented in htmlpage_search() in htmlpage_search.php.
We have to search the following fields in two tables:
a. althings: 1 record/althing: header/introduction/question/conclusion/footer
b. althing_posts: 0,1,...N records/althing: subject/author/content
Althings always qualify (the 5 fields are always visible) Posts only qualify when althing status is 0 (open) or 1 (frozen) AND the post is published and visible
Hits in althings link to the main page (node=$node_id) Hits in the posts link to node=$node_id,post=$post_id
The content in posts is converted from BBCode to HTML before starting the search,
count the number of hits in $table
Documentation generated on Tue, 28 Jun 2016 19:08:18 +0200 by phpDocumentor 1.4.0