This class enables the system to perform query searches in the tables specified by their IDs. Use the SimpleSearch methods in your server-side scripts.
recreateAllIndiсes()
This method reindexes all columns with the active Full Text Search attribute in the system.
Return:
Type
Description
Void
This method does not return a value.
Example:
search
const simpleSearch = new SimpleSearch();
simpleSearch.recreateAllIndices();
recreateIndicesByTableName(tableName)
This method reindexes all columns with the active Full Text Search attribute within the table specified and its child tables.
Parameter(s):
Name
Type
Mandatory
Default Value
tableName
String
Y
N
Example:
search
const simpleSearch = new SimpleSearch();
simpleSearch.recreateIndicesByTableName('task');
recreateIndicesByColumnId(columnId)
This method reindexes a column and its child entities based on its ID.
Parameter(s):
Name
Type
Mandatory
Default Value
columnID
String
Y
N
Return:
Type
Description
Void
This method does not return a value.
Example:
search
const simpleSearch = new SimpleSearch();
simpleSearch.recreateIndicesByColumnId(155931135900001085); // recreating indices for Description column of Task table
search(text, tableIDs)
This method performs a search query against tables. The tableIDs parameter is an array of the sys_id type.
Parameter(s):
Name
Type
Mandatory
Default Value
text
String
Y
N
tableIDs
Array
Y
N
Return:
Type
Description
Array
This method returns an array of the SimpleRecord type.