"""Full-text search package with Tantivy backend."""

from .core import (
    IndexConfig,
    load_config_from_yaml,
    load_jsonl_data,
    ensure_id_column,
    preview_text,
    normalize_field_value,
    normalize_metadata_value,
    SearchRequest,
    FetchRequest,
    BatchCommand,
    BatchRequest,
    SearchResultBase,
    SearchResultFull,
    SearchResponse,
    FetchResponse,
    BatchResponse,
    IndexInfo,
    IndicesResponse,
    HealthResponse,
)
from .service import SearchService, SearchServiceConfig

__all__ = [
    # Configuration
    "IndexConfig",
    "load_config_from_yaml",
    # Data utilities
    "load_jsonl_data",
    "ensure_id_column",
    # Text utilities
    "preview_text",
    "normalize_field_value",
    "normalize_metadata_value",
    # Request models
    "SearchRequest",
    "FetchRequest",
    "BatchCommand",
    "BatchRequest",
    # Response models
    "SearchResultBase",
    "SearchResultFull",
    "SearchResponse",
    "FetchResponse",
    "BatchResponse",
    "IndexInfo",
    "IndicesResponse",
    "HealthResponse",
    # Service
    "SearchService",
    "SearchServiceConfig",
]
