From 2e79d1ece2737848234adec61cca77f9f604fce2 Mon Sep 17 00:00:00 2001 From: JP Appel Date: Tue, 5 Aug 2025 13:38:06 -0400 Subject: Add headings category to query lang --- pkg/data/db.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg/data') diff --git a/pkg/data/db.go b/pkg/data/db.go index 2d9e6c0..bf707b4 100644 --- a/pkg/data/db.go +++ b/pkg/data/db.go @@ -258,10 +258,10 @@ func createSchema(db *sql.DB, version string) error { SELECT d.id AS docId, d.path, - d.headings, d.title, d.date, d.fileTime, + d.headings, d.meta, COALESCE(a.name, al.alias) AS author, t.name AS tag, @@ -396,7 +396,7 @@ func (q Query) Execute(ctx context.Context, artifact query.CompilationArtifact) } compiledQuery := fmt.Sprintf(` - SELECT DISTINCT docId, path, headings, title, date, fileTime, meta + SELECT DISTINCT docId, path, title, date, fileTime, headings, meta FROM Search WHERE %s`, artifact.Query) -- cgit v1.2.3