luceneSearch(search)
Parameters
- search
- The search terms and operators that represent the Lucene search phrase.
Returns
Returns an array of ScriptNode objects that were found by the SkyVault repository Lucene search.
Example
luceneSearch(store, search)
Parameters
- store
- The given store, for example workspace://SpacesStore.
- search
- The search terms and operators that represent the Lucene search phrase.
Returns
Returns an array of ScriptNode objects that were found by the SkyVault repository Lucene search in the given store.
Example
luceneSearch(search, sortColumn, asc)
Parameters
- search
- The search terms and operators that represent the Lucene search phrase.
- sortColumn
- The property name to sort on.
- asc
- The sort order. If set to true the results are ordered in ascending order based on the property specified. If false the results are sorted in descending order.
Returns
Returns an array of ScriptNode objects satisfying the search criteria sorted by the specified sortColumn and asc.
Example
luceneSearch(store, search, sortColumn, asc)
This method performs a Lucene search by property and a specified sort order in the given store.
Parameters
- store
- The given store
- search
- The search terms and operators that represent the Lucene search phrase.
- sortColumn
- The property name to sort on
- asc
- The sort order. If set to true the results are ordered in ascending order based on the property specified. If false the results are sorted in descending order.
Returns
Returns an array of ScriptNode objects satisfying the search criteria and sorted by the specified sortColumn and asc in the given store.
Example
luceneSearch(search, sortColumn, asc, max)
Parameters
- search
- The search terms and operators that represent the Lucene search phrase.
- sortColumn
- The property name to sort on
- asc
- The sort order. If set to true the results are ordered in ascending order based on the property specified. If false the results are sorted in descending order.
- max
- The maximun number of items to return in the search results.
Returns
Returns an array of ScriptNode objects satisfying the search criteria and sorted by the specified sortColumn and asc. The results are limited to the number specified by the max parameter.
Example
luceneSearch(store, search, sortColumn, asc, max)
Parameters
- store
- The given store
- search
- The search terms and operators that represent the Lucene search phrase.
- sortColumn
- The property name to sort on
- asc
- The sort order. If set to true the results are ordered in ascending order based on the property specified. If false the results are sorted in descending order.
- max
- The maximun number of items to return in the search results.
Returns
Returns an array of ScriptNode objects satisfying the search criteria and sorted by the specified sortColumn and asc in the given store. Results are limited to the number specified by the parameter max.