Remove-QueryIndex
Note
This feature is only available in NCache Enterprise and Professional editions.
Remove-QueryIndex
cmdlet enables the user to remove pre-defined query indexes
for the objects to be added in the cache.
Remove-QueryIndex [-CacheName] [-AttributesList] [-Class] [-NoLogo] [-Password] [-Port] [-Server] [-UserId]
These properties are explained in detail in the Properties section.
Examples
- This command removes query indexing for the class Customers using default port 8250.
Remove-QueryIndex -CacheName demoCache -Class Data.Customer
- This command 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 –Attributes
CustomerID'$'FirstName
- This command removes query indexing for the class Customer on server node ’20.200.21.11’ using the port 8251.
Remove-QueryIndex demoCache -Class Data.Customer –Server 20.200.21.11 –Port 8251
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. | - |
-Class |
<String> |
Specifies the name of the class for which query indexing needs to be removed. | - |
-AtributesList |
<String> |
Specifies the attributes for removing query indexing. If multiple attributes are needed; they are separated by a ‘$’ | - |
-Server |
<String> |
Specifies the NCache server name where the NCache service is running. | - |
-Port |
<Integer> |
Specifies the server port where NCache server is listening. | 8250 |
-UserId |
<String> |
Specifies the User Id used to authorize a user if security is enabled on cache server. This User Id must be the same as the active directory user credentials. | - |
-Password |
<String> |
Specifies the password against the user Id; to authorize a user if security is enabled on cache server. This password must be the same as active directory password. | - |
-NoLogo |
<SwitchParameter> |
Suppresses display of the logo banner. | False |