lucee.Component contentbox.models.search.SearchResults
ContentBox - A Modular Content Platform Copyright since 2012 by Ortus Solutions, Corp www.ortussolutions.com/products/contentbox --- The official ContentBox Search Results Object
Property Summary | ||||
---|---|---|---|---|
type | property | default | serializable | required |
boolean
|
error
Mark if the search results produce an error or not.
|
true
|
false
|
|
array
|
errorMessages
An array of error messagse if any.
|
true
|
false
|
|
struct
|
metadata
Any metadata structure you wish to store.
|
true
|
false
|
|
any
|
results
The search results in query or array or whatever format.
|
true
|
false
|
|
string
|
searchTerm
The search term used.
|
true
|
false
|
|
numeric
|
searchTime
The amount of time it took for the search in milliseconds.
|
true
|
false
|
|
numeric
|
total
The total number of records found.
|
true
|
false
|
Constructor Summary | |
---|---|
init()
Constructor. |
Method Summary | |
---|---|
string
|
getError()
|
string
|
getErrorMessages()
|
struct
|
getMemento()
Get the search memento. |
string
|
getMetadata()
|
string
|
getResults()
|
string
|
getSearchTerm()
|
string
|
getSearchTime()
|
string
|
getTotal()
|
any
|
populate(struct memento)
Populate a memento. |
any
|
setError(boolean error)
|
any
|
setErrorMessages(array errorMessages)
|
any
|
setMetadata(struct metadata)
|
any
|
setResults(any results)
|
any
|
setSearchTerm(string searchTerm)
|
any
|
setSearchTime(numeric searchTime)
|
any
|
setTotal(numeric total)
|
Methods inherited from class lucee.Component |
---|
None |
Constructor Detail |
---|
Constructor
Property Detail |
---|
Mark if the search results produce an error or not
access
- publicrequired
- falsereturntype
- anyserializable
- trueAn array of error messagse if any
access
- publicrequired
- falsereturntype
- anyserializable
- trueAny metadata structure you wish to store
access
- publicrequired
- falsereturntype
- anyserializable
- trueThe search results in query or array or whatever format
access
- publicrequired
- falsereturntype
- anyserializable
- trueThe search term used
access
- publicrequired
- falsereturntype
- anyserializable
- trueThe amount of time it took for the search in milliseconds
access
- publicrequired
- falsereturntype
- anyserializable
- trueThe total number of records found
access
- publicrequired
- falsereturntype
- anyserializable
- trueMethod Detail |
---|
Get the search memento
Populate a memento
memento
error
errorMessages
metadata
results
searchTerm
searchTime
total