Remove-QueryIndex - PowerShell Cmdlet
This PowerShell Cmdlet enables the user to remove pre-defined query indexes for the objects to be added in the cache.
Note
This feature is only available in NCache Enterprise.
Remove-QueryIndex [-CacheName] [-AttributesList] [-Class] [-Port] [-Server] [-Credentials] [-NoLogo]
Examples of Remove-QueryIndex - PowerShell Cmdlet
- This PowerShell Cmdlet removes query indexing for the class Customers using default port 8250.
Remove-QueryIndex -CacheName demoCache -Class Data.Customer
- This PowerShell Cmdlet removes query indexing for the attributes CustomerID and First Name of the class Customer and a cache named demoCache.
Remove-QueryIndex -CacheName demoCache -Class Data.Customer –AttributesList "CustomerID'$'FirstName"
Properties
Note
The parameters with asterisk (*) on their names are the required parameters and the rest are optional.
Parameters | Data Types | Description | Default Value |
---|---|---|---|
-CacheName* |
<String> |
Specifies the name of the cache for which query indexing needs to be removed. | - |
-AttributesList |
<String> |
Specifies the attributes for removing query indexing. If multiple attributes are needed; they are separated by a ‘$’. | - |
-Class |
<String> |
Specifies the name of the class for which query indexing needs to be removed. | - |
-NoLogo |
<SwitchParameter> |
Suppresses display of the logo banner. | False |
-Port |
<Integer> |
Specifies the server port where NCache server is listening. | 8250 |
-Server |
<String> |
Specifies the NCache server name where the NCache Service is running. | - |
-Credentials |
<pscredential> |
Specifies the user credentials required to authorize access for the specified operation. These credentials should belong to a user who has appropriate permissions at the node. | - |