Modules.jsonsearch_lib

Provides functionality around indexing directories and searching inside JSON documents.

Functions

check_index(script_dir, path, index_dict)

checks a path for recent changes and updates the index accordingly

dict_flatten_dict(target_dict[, flat_dict])

a recursive structural flattener to simplify a search

f_search(search_index, search_dict)

A flat search algorithm for values on a regular expression basis

schema_matching_search(index, schema, script_dir)

Takes an index and matches all entries against the selected schema.

start_index(script_dir, path, index_dict[, ...])

Creates or overwrites an index file for a given path, containing only paths to JSON documents.

watchdog(script_dir, main_index)

The watchdog function is supposed to be called every other intervall of time to check all indexes of the tool