"""Luci — the SQLite/DuckDB of Elasticsearch.

An embeddable, in-process search engine with text, vector, geo, and
nested document search.

Usage::

    import luci

    index = luci.Index.create("/tmp/my_index", {
        "properties": {
            "title": {"type": "text"},
            "tag": {"type": "keyword"},
        }
    })

    index.add({"title": "hello world", "tag": "greeting"})
    index.commit()

    results = index.search({"match": {"title": "hello"}})
    for hit in results["hits"]:
        print(hit["_score"], hit["_source"])
"""

from luci._luci import Index, set_num_threads

__all__ = ["Index", "set_num_threads"]
__version__ = "0.0.1"
