Knowledgebase Home Page  >  SearchUnit  >  Version 3 Articles
Search the Knowledge Base
How can I convert a version 2 index to version 3 in an automated fashion?
https://keyoti.com/kb/Default.aspx?ToDo=view&questId=184&catId=67

Options

Print this page
Email this to a friend
Version 2 index directories are easily converted to v3 format using the GUI tool included with the product, however in situations where this should be automated, the use of a DLL version is necessary;
 
 
Usage:
 
1. Reference the DLL
 
2. Call the conversion method
 
 
C#
 
 IndexDirectoryMigrator.Model.V2ToV3Convert(indexDirectoryPath, new IndexDirectoryMigrator.Model.AppendStatus(appendStatus));
 
where appendStatus is a method with signature
 
 void appendStatus(string m)
 {
  //can be empty, will be called with progress updates and status.
 }
 
and indexDirectoryPath is a string with the absolute location of the index directory to convert.
 
 
 
VB.NET
 
 IndexDirectoryMigrator.Model.V2ToV3Convert(indexDirectoryPath, New IndexDirectoryMigrator.Model.AppendStatus(addressof appendStatus))
 
where appendStatus is a method with signature

 sub appendStatus(m as string)
  
  'can be empty, will be called with progress updates and status.
 
 end sub
 
and indexDirectoryPath is a string with the absolute location of the index directory to convert.

Related Questions:

Attachments:

No attachments were found.