Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 646 Bytes

File metadata and controls

33 lines (23 loc) · 646 Bytes

User Guide

Ce guide explique comment utiliser Velocity Search Engine.

Indexation

from src.indexer.inverted_index import InvertedIndex
index = InvertedIndex()
index.add_document("doc1", ["python", "search", "engine"])

Recherche

results = index.search(["python", "engine"])
print(results)  # doc_id → score

Utilisation CLI

python -m src.cli index --input data/
python -m src.cli search --query "python search"

Utilisation API Web

curl "http://localhost:5000/search?q=python+search"

Pour plus d’exemples, voir docs/source/quickstart.rst et docs/source/integration.rst.