• Webinars
  • Docs
  • Download
  • Blogs
  • Contact Us
Try Free
Show / Hide Table of Contents

Write-QueryIndexConfig

Note

This feature is only available in NCache OpenSource edition.

Write-QueryIndexConfig enables the user to generate the configuration, which configures query indexes for the objects to be added in the cache. The configuration can either be displayed on the console or in the file specified.

Write-QueryIndexConfig –AssemblyPath -Class [-OutputFile]

Examples

  • The following example generates the query index configurations for the class Customer from the given assembly.
 Write-QueryIndexConfig -AssemblyPath "C:\ProgramFiles\NCache\samples\dotnet\SampleData\SampleData\bin\Debug\SampleData.dll" -Class Alachisoft.NCache.Sample.Data.Customer

The command displays the following output on the console.

Write Query Index Config NCache PowerShell

  • The following example generates the query index configurations for the class Product from the given assembly to the specified file.
Write-QueryIndexConfig -AssemblyPath "C:\ProgramFiles\NCache\samples\dotnet\SampleData\SampleData\bin\Debug\SampleData.dll" -Class Alachisoft.NCache.Sample.Data.Product-OutputFile "D:\QueryIndexConfig.xml"

Properties

Note: The parameters with asterisk (*) on their names are the required parameters and the rest are optional.

Parameters Data Types Description Default Value
-AssemblyPath* <String> Specifies the path of the assembly which will be configured. -
-Class* <String> Specifies the name of the cache for which query index will be configured. -
-OutputFile <string> Specifies the path of the output file in which configuration will be written. -
-NoLogo <SwitchParameter> Suppresses display of the logo banner. False
Back to top Copyright © 2017 Alachisoft