feat(search): add whoosh-compat, the shared field table and the field registry

This commit is contained in:
stumpylog
2026-09-10 12:36:25 -07:00
parent 8593f84cae
commit 227b03365c
12 changed files with 830 additions and 88 deletions
+10
View File
@@ -0,0 +1,10 @@
from whoosh_compat import FieldKind
from documents.search._fields import PUBLIC_FIELDS
class TestPublicFields:
def test_json_fields_have_subpaths(self) -> None:
for field in PUBLIC_FIELDS:
if field.kind is FieldKind.JSON:
assert field.subpaths, f"{field.name} is JSON but has no subpaths"