Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/lume/plugins/search.ts>buildFilter

🔥 Static site generator for Deno 🦕
Very Popular
Go to Latest
function buildFilter
import { buildFilter } from "https://deno.land/x/lume@v1.12.1/plugins/search.ts";

Parse a query string and return a function to filter a search result

example: "title=foo level<3" returns: (page) => page.data.title === "foo" && page.data.level < 3

Parameters

optional
query: string

Returns

(page: Page) => boolean