╭─────────────╮ │scroll to top│ ╰─────────────╯ ╭ search_thread.zig ────────────────────────────────────────────╮ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╰───────────────────────────────────────────────────────────────╯
╭────╮ ╭ clone ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╮ │http│ ssh │ │ ╰────╯ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╯
62 for (filters) |filter| if (filter) |set| try results.require(aa, set); 63 return results; 64 } 65 66 // the text a thread is indexed under, none once it is removed: the title and 67 // labels first, so the tokenizer's caps can only drop the tail of a long 68 // description. 69 fn text(aa: std.mem.Allocator, record: anytype) ![]const u8 { 70 if (record.removed) return ""; 71 return std.mem.concat(aa, u8, &.{ record.event.title, " ", record.event.labels, " ", record.event.description }); 72 } 73