+-------------------+ +-------------------+ +-------------------+ | Input Source | --> | Index/Storage | --> | Search Engine | | (DB, files, API) | | (Elasticsearch, | | (query builder | | | | SQLite, …) | | + ranking) | +-------------------+ +-------------------+ +-------------------+ | v +-------------------+ | Result Formatter| +-------------------+ | v +-------------------+ | API / UI Layer | +-------------------+
def test_regex_matches(): txt = "The user adn622 posted a verified video about miu." assert find_matches_regex(txt) == "adn622", "verified", "miu"
if __name__ == '__main__': app.run(host='0.0.0.0', port=5000)
+-------------------+ +-------------------+ +-------------------+ | Input Source | --> | Index/Storage | --> | Search Engine | | (DB, files, API) | | (Elasticsearch, | | (query builder | | | | SQLite, …) | | + ranking) | +-------------------+ +-------------------+ +-------------------+ | v +-------------------+ | Result Formatter| +-------------------+ | v +-------------------+ | API / UI Layer | +-------------------+
def test_regex_matches(): txt = "The user adn622 posted a verified video about miu." assert find_matches_regex(txt) == "adn622", "verified", "miu"
if __name__ == '__main__': app.run(host='0.0.0.0', port=5000)