Customizing Code Search Indexing

Code Insight 6.14.2 SP1

The following properties may be added to the scan.properties file to further customize indexing and processing of binary files during indexing.

Important:Restart the server if you add or modify any of these properties.

Code Search Binary Support Properties

Property

Details

workspaceIndexing = true

Set to true to enable indexing for the next scan. Set to false to turn it off. Default = true

indexExcludeList =

Comma separated list of file extensions to append to the internal predefined set of extensions (see Workspace Settings > General > Excluded File Patterns for existing list) that will be excluded from Code Search indexing.

indexSrcList =

Comma separated list of file extensions to append to the internal predefined set of extensions (see Workspace Settings > Languages – Extensions for existing list) that will be processed and indexed by Code Search. Default = empty

indexBinList = dll, exe, jar, rpm

Comma separated list of extensions to process as binary data (index without Tika using US-ASCII to minimize junk terms). Highlights are available.

Default = dll, exe, jar, rpm

indexTikaParseLen = 10485760

Limits the number of characters per file processed by Apache Tika. Use -1 to process the entire file and 0 to not process any file using Tika.

indexTikaParseLen = n implies Tika will process up to n characters per file.

Default = 10485760

Note:All binary files not specified by the indexBinList property are processed by Apache Tika. Apache Tika typically generates a much larger index and can take a long time to run. In the case that you experience a system hang during indexing, it is recommended that you set “indexTikaParseLen = 0” to limit the number of characters processed by Tika.