Update Lucene Index Path
NCache provides support for Lucene in the form of a Distributed Lucene cache. You can use a Distributed Lucene cache to index and search documents quickly and easily. You can configure the index path for your Distributed Lucene cache at cache creation time. Once your Distributed Lucene cache has been created, you also have the option to update the path of the indexes through the NCache Management Center.
This section will explain how you can update indexes for a Distributed Lucene cache through the NCache Management Center.
You can't update the index path for a Local Lucene Cache.
Using the NCache Management Center
Launch the NCache Management Center by browsing to http://localhost:8251 or
<server-ip>:8251on Windows and Linux.
In the left navigation bar, click on Clustered Caches against the Distributed Lucene Cache, and click on View Details.
Make sure that your cache(s) is stopped.
This opens the detailed configuration page for the cache. Go to the Advanced Settings tab and click on Full Text Search Index in the left bar.
You'll see the current path of your indexes in the field against the Index Path label. To change this path, click on the Change Path button.
- A new page with the title Change Full Text Search Index Path will open up. On this page, you'll see your current index path in the field against the Existing Index Path label. Provide your new index path in the field against the New Index Path label. Click Validate Path. Once your path has been validated, click Next.
Make sure the new index path is empty, otherwise, an error notification will be shown when you click Validate Path.
- On the next page, copy all the contents from your current path to the new path. Once you have done so, check the "I have copied all contents from an existing location to the new location on all cache servers" checkbox.
If you click Finish without copying the contents from the current path to the existing path, you'll be prompted with an error message.
- Click on Finish to complete this process.
Start the cache once the changes have been saved.