lucee.Component contentbox.models.search.DBSearch
ContentBox - A Modular Content Platform Copyright since 2012 by Ortus Solutions, Corp www.ortussolutions.com/products/contentbox --- Our DB Search Adapter
Property Summary | ||||
---|---|---|---|---|
type | property | default | serializable | required |
any
|
cb
|
true
|
false
|
|
any
|
contentService
|
true
|
false
|
|
any
|
wirebox
|
true
|
false
|
Constructor Summary | |
---|---|
init()
|
Method Summary | |
---|---|
string
|
getCb()
|
string
|
getContentService()
|
string
|
getWirebox()
|
private any
|
highlightSearchTerm(any term, any content)
Utility function to help you highlight search terms in content. |
ISearchAdapter
|
refresh()
If chosen to be implemented, it should refresh search indexes and collections. |
any
|
renderSearch(string searchTerm, [numeric max='0'], [numeric offset='0'])
Render the search results according to the adapter and returns HTML. |
any
|
renderSearchWithResults(SearchResults searchResults)
Render the search results according the passed in search results object. |
SearchResults
|
search(string searchTerm, [numeric max='0'], [numeric offset='0'])
Search content and return an standardized ContentBox Results object. |
any
|
setCb(any cb)
|
any
|
setContentService(any contentService)
|
any
|
setWirebox(any wirebox)
|
private any
|
stripHTML([any stringTarget])
utility to strip HTML. |
Methods inherited from class lucee.Component |
---|
None |
Constructor Detail |
---|
Property Detail |
---|
access
- publicrequired
- falsereturntype
- anyinject
- id:cbHelper@cbserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- id:contentService@cbserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- wireboxserializable
- trueMethod Detail |
---|
Utility function to help you highlight search terms in content
term
- The search termcontent
- The content searchedIf chosen to be implemented, it should refresh search indexes and collections
refresh
in interface
ISearchAdapter
Render the search results according to the adapter and returns HTML
renderSearch
in interface
ISearchAdapter
searchTerm
max
offset
Render the search results according the passed in search results object
renderSearchWithResults
in interface
ISearchAdapter
searchResults
- The search results objectSearch content and return an standardized ContentBox Results object.
search
in interface
ISearchAdapter
searchTerm
- The search term to search onmax
- The max results to return if pagingoffset
- The offset to use in the search results if pagingcb
contentService
wirebox
utility to strip HTML
stringTarget