ePages 7.3.0 - DE_EPAGES/Catalog/API/TLE/SearchTermHandler.pm

Package DE_EPAGES::Catalog::API::TLE::SearchTermHandler

Functions

SEARCH_TERMS

SEARCH_TERMS

Looks for a limited number of search terms of a certain site and returns them in sorted order.

Syntax
#FUNCTION("SEARCH_TERMS", #NumberOfResults)
#FUNCTION("SEARCH_TERMS", #NumberOfResults, #OrderBy)
#FUNCTION("SEARCH_TERMS", #NumberOfResults, #OrderBy, #OrderDirection)
Example
#LOOP(#FUNCTION("SEARCH_TERMS", 5)) #Term - #CountRequests - #CountResults #ENDLOOP
#LOOP(#FUNCTION("SEARCH_TERMS", 5, "CountRequests")) #Term - #CountRequests - #CountResults #ENDLOOP
#LOOP(#FUNCTION("SEARCH_TERMS", 5, "CountRequests", "ASC")) #Term - #CountRequests - #CountResults #ENDLOOP
Input
#NumberOfResults (integer)
max. number of resulting elements
#OrderBy (string)
order by column name (optional, default="CountRequests")
#OrderDirection (string)
sort result ascending or descending ["ASC"|"DESC"] (optional, default="DESC")
Return
#SortedSearchTerms (ref.array.hash)
sorted list of search terms