Remove silly lines

This commit is contained in:
Trenton H
2026-03-30 13:08:57 -07:00
parent a213c2cc9b
commit 7f63259f41
-7
View File
@@ -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",