diff options
| author | JP Appel <jeanpierre.appel01@gmail.com> | 2025-08-05 13:38:06 -0400 |
|---|---|---|
| committer | JP Appel <jeanpierre.appel01@gmail.com> | 2025-08-05 13:38:06 -0400 |
| commit | 2e79d1ece2737848234adec61cca77f9f604fce2 (patch) | |
| tree | f7cd8b9985865cee360bc1b21b748309d166594b /pkg/data | |
| parent | 2263b41287ed5dc9c1c4416cc296581f3a466144 (diff) | |
Add headings category to query lang
Diffstat (limited to 'pkg/data')
| -rw-r--r-- | pkg/data/db.go | 4 |
1 files changed, 2 insertions, 2 deletions
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) |
