Provides a full-text search of the commits contained in the LMS repo.
If you plan on locally hosting the server, you will need the IIS hosting bundle
- SqlServer with Full-Text Search installed
GitSearch2.Indexer is a console application that will perform the actual work of moving through the repository and indexing the commits.
Simple example for a local Sqlite database:
GitSearch2.Indexer.exe --input c:\d2l\instances\dev2\checkout\.git --pause true --live true --database Sqlite --connection "Data Source=webapp.sqlite3"
The web server uses appsettings.json
to control which database is used.
The indexer can be run multiple times. When the indexer runs it will attempt to determine if an indexing is already underway. If one is, it will schedule a follow-on indexing and then exit. The currently running indexer, when it completes its current run, will check to see if any updates are scheduled and will re-execute automatically. This loop will continue until there are no scheduled runs pending.