SwatObject
└─SiteObject
└─SiteApplication
└─SiteCommandLineApplication
└─SiteSearchIndexer
└─SiteNateGoSearchIndexer
public class SiteNateGoSearchIndexer
extends SiteSearchIndexer
| Field Summary | |
|---|---|
| protected mixed | Whether or not the search cache should be cleared after indexing. |
| Fields inherited from Site.SiteSearchIndexer | |
|---|---|
| db | |
| Fields inherited from Site.SiteCommandLineApplication | |
|---|---|
| VERBOSITY_ALL, VERBOSITY_ERRORS, VERBOSITY_NONE, arguments, documentation, lock_file, title, verbosity | |
| Fields inherited from Site.SiteApplication | |
|---|---|
| VAR_COOKIE, VAR_ENV, VAR_FILES, VAR_GET, VAR_POST, VAR_REQUEST, VAR_SERVER, VAR_SESSION, default_time_zone, id, locale, modules, modules_by_provides | |
| Constructor Summary | |
|---|---|
SiteNateGoSearchIndexer(mixed id, mixed config_filename, mixed title, mixed documentation) |
|
| Method Summary | |
|---|---|
| protected void | Checks to see if the search queue has any entries. |
| protected void | Clears cached search results. |
| protected string | Get the custom word list. |
| protected void | index() Indexes documents. |
| protected void | Indexes articles. |
| void | queue() Repopulates the entire search queue. |
| protected void | Repopulates the articles queue. |
| void | run() Run the application. |
| Methods inherited from Site.SiteSearchIndexer | |
|---|---|
| configure, getDefaultModuleList | |
| Methods inherited from Site.SiteCommandLineApplication | |
|---|---|
| addCommandLineArgument, debug, displayArgumentUsage, displayUsage, error, getLockFilename, getScriptDirectory, lock, output, parseCommandLineArguments, setApplicationDirectory, setVerbosity, terminate, unlock | |
| Methods inherited from Site.SiteApplication | |
|---|---|
| addConfigDefinitions, addDefaultModule, addDefaultModules, addModule, configure, configureErrorHandling, getCountry, getDefaultModuleList, getInstance, getInstanceId, getLocale, getModule, hasModule, initModules, initVar, postInitConfigure, run | |
protected mixed $clear_cache = false
Whether or not the search cache should be cleared after indexing
public SiteNateGoSearchIndexer(mixed id, mixed config_filename, mixed title, mixed documentation)
protected void checkQueue()
Checks to see if the search queue has any entries
If the queue has entries, cached search results are cleared at the end of teh idexing process.
protected void clearCache()
Clears cached search results
protected string getCustomWordList()
Get the custom word list
Get the custom word list that is used by this fulltext search engine.
protected void index()
Indexes documents
Subclasses should override this method to add or remove additional indexed tables.
protected void indexArticles()
Indexes articles
Articles are visible if they are enabled. Articles may not be shown in the menu but are still visible. Articles also have an explicit searchable field.
public void queue()
Repopulates the entire search queue
protected void queueArticles()
Repopulates the articles queue
public void run()
Run the application.
Site search indexer application for NateGoSearch
This indexer indexes articles by default. Subclasses may change how and what gets indexed.