ida_indexer
Indexer API: search functions, names, local types, segments and function comments.
The indexer maintains a data structure optimized for substring matching, allowing queries to be answered quickly regardless of database size. Substring matching is further accelerated using multiple threads.
Attributes
Invalid / unset value. |
|
Functions (mangled and demangled names). |
|
Local types defined in the IDB. |
|
Names in the name list (both mangled and demangled). |
|
Segment names. |
|
Non-repeatable function comments. |
|
Repeatable function comments. |
|
Substring match (default). Fast and exact. |
|
Fuzzy match. Tolerates typos and abbreviations. |
Classes
Functions
|
Returns true if the indexer is enabled for the current database. The indexer is controlled by the ENABLE_INDEXER configuration option and requires the database to have been opened with indexing support. |
|
Search all sub-indexes for query using config. |
|
Search a single sub-index identified by subindex_id for query. |
Module Contents
- ida_indexer.INVALID_SUBIDX_ID
Invalid / unset value.
- ida_indexer.SUBIDX_FUNCTIONS
Functions (mangled and demangled names).
- ida_indexer.SUBIDX_LTYPES
Local types defined in the IDB.
- ida_indexer.SUBIDX_NAMES
Names in the name list (both mangled and demangled).
- ida_indexer.SUBIDX_SEGMENTS
Segment names.
- ida_indexer.SUBIDX_FUNCTION_COMMENTS
Non-repeatable function comments.
- ida_indexer.SUBIDX_REPEATABLE_FUNCTION_COMMENTS
Repeatable function comments.
- ida_indexer.STR_MATCH
Substring match (default). Fast and exact.
- ida_indexer.FUZZY
Fuzzy match. Tolerates typos and abbreviations.
- class ida_indexer.match_config_t
Bases:
object- thisown
- mode: match_mode_t
Matching algorithm to use.
- class ida_indexer.search_result_data_t
Bases:
object- thisown
- get_ea(index: int) ida_idaapi.ea_t
Effective address of result at index, or BADADDR for local types.
- get_ltype_type(index: int) type_t
BT_* type code of the local type at index (valid when get_ltype_ordinal() != 0).
- get_subindex(index: int) subindex_typeid_t
Sub-index that produced result at index (e.g. SUBIDX_FUNCTIONS).
- get_match_range(index: int, range_idx: int) match_range_t
Returns the range_idx’th matched range for result at index.
- get_match_line_range(index: int) match_range_t
For function-comment results, the range within get_name_str() that holds the matched comment line. Returns {0, 0} for all other result types.
- ida_indexer.indexer_is_enabled() bool
Returns true if the indexer is enabled for the current database. The indexer is controlled by the ENABLE_INDEXER configuration option and requires the database to have been opened with indexing support.
- ida_indexer.indexer_match_all(query: str, config: match_config_t) search_result_data_t *
Search all sub-indexes for query using config.
- Returns:
a heap-allocated result set; the caller must delete it. Returns nullptr if the indexer is not enabled.
- ida_indexer.indexer_match(subindex_id: subindex_typeid_t, query: str, config: match_config_t) search_result_data_t *
Search a single sub-index identified by subindex_id for query.
- Returns:
a heap-allocated result set; the caller must delete it. Returns nullptr if the indexer is not enabled or subindex_id is invalid.