Lucy::...torial(3pm)
β¨ NAME β¨
okay bestie, welcome to Lucy::...torial(3pm) β this is Lucy::Docs::Tutorial, aka your step-by-step introduction to Apache Lucy. π«Ά
πΈ DESCRIPTION πΈ
So here's the vibe: we're gonna explore Apache Lucy's basic functionality together, and the way we do that is we start with a minimalist CGI search app built on Lucy::Simple, and then we transform it, step by step, into an "advanced search" interface that uses the more flexible core modules like Indexer and IndexSearcher. it's giving glow-up arc, fr fr. π
π Chapters π
- SimpleTutorial β build a bare-bones search app using
Lucy::Simple. the starter pack, the origin story. β¨ - BeyondSimpleTutorial β rebuild the app using core classes like
IndexerandIndexSearcherin place ofLucy::Simple. glow-up part two. π - FieldTypeTutorial β experiment with different field characteristics using subclasses of
FieldType. mix and match, it's fun. - AnalysisTutorial β examine how the choice of
Analyzersubclass affects search results. the way that one tiny choice changes everything? iconic. - HighlighterTutorial β augment search results with highlighted excerpts. sparkle on the results, we love to see it. β¨
- QueryObjectsTutorial β unlock advanced search features by using
Queryobjects instead of query strings. the final boss. π₯
π Source materials π
The source material used by the tutorial app β a multi-text-file presentation of the United States constitution β lives in the "sample" directory at the root of the Lucy distribution, right alongside finished indexing and search apps. no cap.
sample/indexer.pl # indexing app
sample/search.cgi # search app
sample/us_constitution # corpus
π Conventions π
You're expected to already be familiar with OO Perl and basic CGI programming. like, that's the prerequisite bestie, i don't make the rules. π
The code in this tutorial assumes a Unix-flavored operating system and the Apache webserver β but lowkey it'll work with minor modifications on other setups too. π
π¦ See also π¦
More advanced and esoteric subjects are covered in Cookbook. go there when you're ready to level up. β
and that's the whole page, bestie!! this was perl v5.42.0, dated 2025-07-25, and it's the Lucy::...torial(3pm) page β mwah, go build something cute ππ§
π¦ where this page comes from
- fedora 43: perl-Lucy 0.6.2-26.fc43 Β· Apache-2.0 AND MIT AND Unicode-DFS-2015
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms