Build Advanced Search Experiences with a Custom Query Language
summary
Claims a custom query language lets users find needles in millions of log events with a few keystrokes, implemented by writing a PEG grammar, generating a parser that turns strings into simple objects, and a print function to round‑trip queries. The demo builds a PEG grammar, parser generator, autocomplete and error reporting, and a playground that syncs inputs to the search bar so users learn by example. It reports working tradeoffs: precision and efficiency improve, onboarding cost rises.
AI-written summary · about
chapters (16)
- 0:00Intro
- 1:07Log Management
- 2:06Keyword search
- 2:53Advanced search
- 8:05I need a grammar
- 8:51English grammar
- 9:40Query grammar - Furniture store
- 11:26Parsing
- 13:34First Rule of Grammar Club
- 14:12Not a RegEx
- 18:12Release the parser!
- 18:58Requirements
- 20:08Two lessons
- 22:52Parse tree print
- 23:31Onboarding add-ons
- 23:53The benefits of having a CQL
related talks
41mCreating your own query language as an alternative to your forms
21mLightning Talk: Search and Execute with Code Mode Backed by the...
57mOptimizing Frontend Performance of a High-Load Search
44mBuilding a Modern Search Engine: The Road Ahead
39mRelevant search results (with elasticsearch)
36mA custom design pattern for building dynamic ActiveRecord queries
57mElm GraphQL Workshop
27mLet's Build React Query in 150 Lines of Code!
