From 7f63259f41d9e3e2968ba3c9c26ac7555c127ff8 Mon Sep 17 00:00:00 2001 From: Trenton H <797416+stumpylog@users.noreply.github.com> Date: Mon, 30 Mar 2026 13:08:57 -0700 Subject: [PATCH] Remove silly lines --- src/documents/search/_query.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/documents/search/_query.py b/src/documents/search/_query.py index c9b8b6131..b58ebe430 100644 --- a/src/documents/search/_query.py +++ b/src/documents/search/_query.py @@ -291,9 +291,6 @@ def rewrite_natural_date_keywords(query: str, tz: tzinfo) -> str: return _FIELD_DATE_RE.sub(_replace, query) -# ── normalize_query ────────────────────────────────────────────────────────── - - def normalize_query(query: str) -> str: """ Join comma-separated field values with AND, collapse whitespace. @@ -309,8 +306,6 @@ def normalize_query(query: str) -> str: return re.sub(r" {2,}", " ", query).strip() -# ── build_permission_filter ────────────────────────────────────────────────── - _MAX_U64 = 2**64 - 1 # u64 max — used as inclusive upper bound for "any owner" range @@ -368,8 +363,6 @@ def build_permission_filter( return tantivy.Query.disjunction_max_query([no_owner, owned, shared]) -# ── parse_user_query (full pipeline) ───────────────────────────────────────── - DEFAULT_SEARCH_FIELDS = [ "title", "content",