## 2.11. Setup Fulltext Search

The basic configuration of OLAT Fulltext Search is mostly done via build.properties. The following parameters have to be set:

1. `generate.index.at.startup` (true/false): If set to "true" Search index will be generated at OLAT startup. See also parameter 'restart.window.start' , 'restart.window.end' and 'restartDayOfWeek'

2. `restart.window.start` [0..24]: Define start-time of restart-window. See also parameter 'restart.window.end'. E.g. 01:00-02:59 restartWindowStart=1 restartWindowEnd=3. The hole day : 00:00-24:00 restartWindowStart=0 restartWindowEnd=24. Default = '0'

3. `restart.window.end` [0..24]: Define end-time of restart-window. Default = '24'.

The advanced configuration of OLAT Fulltext Search is mostly done via olat_config.xml under section 'SearchService Module'. The following parameters can be set:

1. `restartInterval` [0...X]: Restart Indexing after xx ms (0=no restart) Default = '0'.

2. `restartDayOfWeek` [0...7]: Restart only at this day 1=Sunday,2=Monday...7=Saturday (0=restart every day) Default = '0'.

3. `pptFileEnabled` (true/false): Enabled/Disable indexing of power-point files. Default = 'true'.

4. `excelFileEnabled` (true/false): Enabled/Disable indexing of excel files. Default = 'true'.

5. `maxResults` [0...X]: Max number of search results. Default = '100'.

6. `maxHits` [0...X]: Internal max number of search result hits. Default = '1000'

7. `fileBlackList` Space separated list of file-names which will not be indexed. Default = 'imsmanifest.xml'

8. `indexInterval` [0...X]: Sleeping time of indexing thread between adding documents in ms (0=no delay). Use this parameter to reduce CPU load. Default = '0'

9. `documentsPerInterval` [0...X]: Number of documents which will be added to index before sleeping (see indexInterval). Default = '4'.

10. `numberIndexWriter` [0...X]: Number of index-writer threads(0= no parallel working index-writers). Use this parameter for performance tuning. Default = '0'

11. `folderPoolSize` [0...X]: Number of folder-indexer threads. Use this parameter for performance tuning. Default = '0'.

12. `pdfTextBuffering` (true/false): Enable text-buffering of extracted PDF text. Use this parameter if you have many pdf files for performnace tuning. Default = 'false'.