Lucy::...torial(3pm)

πŸ“¦
version 0.6.2 Β· 2 versions
, in fedora 43

✨ 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 Indexer and IndexSearcher in place of Lucy::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 Analyzer subclass 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 Query objects 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