How to invoke filter:topic.search ?



  • I am working on a search plugin.

    There're two filters available for topic & post :

    • filter:search.query
    plugin.search = function(data, callback) {
        winston.info('enter search')
    	winston.info(data)
    	return callback(null, []);
    };
    
    • filter:topic.search
    plugin.searchTopic = function(data, callback) {
        winston.info('enter topic search')
    	winston.info(data)
    	return callback(null, []);
    };
    

    now I can see the log in search after I search something, as well as advanced search. But searchTopicnever show.

    Can someone tell me how to invoke this filter ?


Log in to reply
 

Suggested Topics

| |