Import-LuceneIndex
Import-LuceneIndex
cmdlet enables users to create a distributed Lucene Index from an existing native Lucene index without requiring to add documents.
Important
The minimum size of native indexes should be at least 10MB.
Import-LuceneIndex -Path <string> -CacheName <string> [-Server <string>] [<CommonParameters>]
These properties are explained in detail in the Properties section.
Examples
- This example command loads native Lucene index from C:\Index to a Distributed Lucene store demoCache
Import-LuceneIndex -CacheName demoCache -Path C:\Index -Server 20.200.21.11
Properties
Note: All fields are mandatory.
Parameters | Data Types | Description | Default Value |
---|---|---|---|
-Path |
<String> |
Specifies the path where native Lucene index is located | - |
-CacheName |
<String> |
Specifies the name of the cache in which Lucene index is supposed to be loaded. | - |
-Server |
<String> |
Specifies a server name where the NCache service is running and a cache with the specified cache-name is registered. | Local Machine |