Module ImportFrom alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Call NameLoad Str ListLoad Str Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign AttributeStore NameLoad attr Call NameLoad keyword Num keyword Num Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad Str keyword AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Assign NameStore ListLoad With Call AttributeLoad AttributeLoad NameLoad attr attr NameStore body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Str Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Print Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str With Call AttributeLoad AttributeLoad NameLoad attr attr NameStore body Expr Call AttributeLoad NameLoad attr keyword Call AttributeLoad Str attr NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str With Call AttributeLoad AttributeLoad NameLoad attr attr NameStore body Expr Call AttributeLoad NameLoad attr keyword Call AttributeLoad Str attr NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str With Call AttributeLoad AttributeLoad NameLoad attr attr NameStore body Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr For TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad body For NameStore NameLoad body If UnaryOpNot Call AttributeLoad NameLoad attr Str body Continue Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Slice NameLoad Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str With Call AttributeLoad NameLoad attr NameLoad Str keyword Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list
N/A collections namedtuple N/A io N/A os whoosh index whoosh query whoosh.highlight ContextFragmenter whoosh.qparser QueryParser markwiki.search.schema WikiSchema N/A SearchResult N/A namedtuple SearchResult N/A path highlight SearchEngine N/A object N/A N/A The engine is the interface to the search related functionality. __init__ N/A N/A self markwiki_home N/A N/A N/A N/A self index_dir N/A N/A N/A os path join markwiki_home search N/A N/A self _context_fragmenter N/A ContextFragmenter maxchars 300 surround 55 N/A N/A self _ix None N/A search N/A N/A self user_query N/A N/A N/A Search the index for wikis that relate to the user's query. N/A parser N/A QueryParser content schema N/A N/A self _ix schema termclass N/A query Variations N/A q N/A N/A parser parse N/A N/A {0} format user_query N/A results N/A N/A N/A N/A N/A self _ix searcher searcher N/A N/A hits N/A N/A searcher search q N/A N/A hits fragmenter N/A self _context_fragmenter N/A hit hits N/A N/A N/A N/A results append N/A SearchResult N/A hit N/A path N/A N/A hit highlights content N/A results N/A create_index N/A N/A self wiki_path N/A N/A N/A Create the search index and populate with initial wiki content. N/A N/A N/A N/A N/A os path exists N/A self index_dir N/A N/A N/A N/A os mkdir N/A self index_dir N/A Creating the search index ... N/A N/A self _ix N/A N/A index create_in N/A self index_dir WikiSchema N/A N/A N/A self _populate_index wiki_path N/A has_index N/A N/A self N/A N/A N/A N/A N/A N/A os path exists N/A self index_dir N/A open_index N/A N/A self N/A N/A N/A Open the search index. N/A N/A N/A self _ix None N/A N/A N/A self _ix N/A N/A index open_dir N/A self index_dir N/A add_wiki N/A N/A self path content N/A N/A N/A Add and index a wiki page. N/A N/A N/A N/A self _ix writer writer N/A N/A N/A N/A writer add_document path N/A N/A {0} format path content content N/A update_wiki N/A N/A self path content N/A N/A N/A Update an existing wiki in the index. N/A N/A N/A N/A self _ix writer writer N/A N/A N/A N/A writer update_document path N/A N/A {0} format path content content N/A delete_wiki N/A N/A self path N/A N/A N/A Delete a wiki from the index. N/A N/A N/A N/A self _ix writer writer N/A N/A N/A N/A writer delete_by_term path N/A N/A {0} format path N/A _populate_index N/A N/A self wiki_path N/A N/A N/A Populate the search index with the initial content of the wiki. N/A segments N/A len N/A N/A wiki_path split N/A os sep N/A N/A root _ files N/A N/A os walk wiki_path N/A N/A file_ files N/A N/A N/A N/A N/A file_ endswith .md N/A N/A N/A abs_path N/A N/A N/A os path join root file_ N/A page_path N/A N/A N/A os sep join N/A N/A N/A abs_path split N/A os sep N/A segments N/A page_path N/A page_path N/A -3 N/A content N/A N/A self _get_markdown_content abs_path N/A N/A N/A self add_wiki page_path content N/A _get_markdown_content N/A N/A self markdown_path N/A N/A N/A Read all the content out of a Markdown file. N/A N/A N/A io open markdown_path r encoding utf-8 f N/A N/A content N/A N/A f read N/A content N/A N/A