indexer_substring_search
summary: search the IDA indexer for a name (substring match)
- description:
Demonstrates how to use the IDA indexer API to search for functions, named locations, local types, segments, and function comments that contain a given query string.
The indexer performs fast substring matching across all indexed data simultaneously. Each result exposes the matched name, the sub-index that produced it (e.g. SUBIDX_FUNCTIONS or SUBIDX_SEGMENTS), its score, and the effective address when applicable.
The example also shows how to narrow a search to a single sub-index when only one category of results is needed.
Note: the indexer must be enabled for the current database. Open the database with -dENABLE_INDEXER=YES to enable it, or check indexer_is_enabled() at runtime.
keywords: indexer, search, functions, names, segments, types, comments
level: beginner
Attributes
Functions
|
|
|
Module Contents
- indexer_substring_search.SUBIDX_NAMES
- indexer_substring_search.print_results(header, results)
- indexer_substring_search.main()