Test the incremental update of the index
The incremental update of the index can be tested by uploading a new file using ProjectDox and determining if that document can be found by searching for it.
1) Upload a new document.
2) After verifying the file was uploaded and processed correctly by the job processor, open the LuceneUITest application and search for the document. If the polling is set for 300 seconds, check after 5 minutes.
3) Review the SearchEngineLog.log file for confirmation that the ProjectDox items have been indexed and become searchable.
4) Confirm Access: If you see the following error, you may not be able to connect to the web server containing the search service.
See attached image, LuceneTest1
5) You can test the connection to the search service by opening a browser window on the ProjectDox web server.
Using the Lucene Test Command Line Tool
Initializing\Re-indexing the Lucene Index
There is a BAT file named “ExecuteReindex.bat” located in the ProjectDox\bin folder that should be copied to the WCF Server installation and can also be used to initialize the Lucene index. It is the plan to build the WCF with this file so no move is necessary.
See attached image, LuceneTest2
The file can be opened in a text editor and updated or used “as-is.”
See attached image, LuceneTest3
The /r switch will tell the application to re-index all records.
The BAT file can be executed directly by double-clicking it or executed by the Windows Scheduler.
Optimizing the Lucene Index
There is a BAT file called “ExecuteOptimize.bat” located in the ProjectDox\bin folder that should be copied to the WCF Server installation and can also be used to optimize the Lucene index. It is the plan to build the WCF with this file so no move is necessary.
See attached image, LuceneTest4
The file can be opened in a text editor and updated or used “as-is.”
See attached image, LuceneTest5
The /o switch will tell the application to optimize the index.
The BAT file can be executed directly by double-clicking it or executed by the Windows Scheduler.
Scheduling the Optimization Process using Windows Scheduler
1) The Lucene Index can be optimized at periodic intervals using the Windows Task Scheduler. Open the Task Scheduler by navigating to the System Tools shortcut folder.
See attached image, LuceneTest6
2) Choose the “Create Task” command to create a new task for the process.
See attached image, LuceneTest7
3) Enter a name for the process, a description, and choose the run option preferred.
See attached image, LuceneTest8
4) Choose a Trigger for the process which includes when it will be executed.
See attached image, LuceneTest9
5) Choose the action you want to perform. Set the LuceneUITest.exe as the program to run.
See attached image, LuceneTest10
6) Set the arguments to pass to the application. A “/o” will tell it to optimize the index, a “/r” will tell it to re-index the index.
See attached image, LuceneTest11
7) After you click OK, the task scheduler may ask you for the credentials of the user you want the process to run under. Enter the user name and password and click OK.
See attached image, LuceneTest12
Comments
0 comments
Please sign in to leave a comment.