Explore Apache Lucy’s basic functionality by starting with a minimalist CGI search app based on Lucy::Simple and transforming it, step by step, into an “advanced search” interface utilizing more flexible core modules like Indexer and IndexSearcher.
SimpleTutorial - Build a bare-bones search app using Lucy::Simple.
BeyondSimpleTutorial - Rebuild the app using core classes like Indexer and IndexSearcher in place of Lucy::Simple.
FieldTypeTutorial - Experiment with different field characteristics using subclasses of FieldType.
AnalysisTutorial - Examine how the choice of Analyzer subclass affects search results.
HighlighterTutorial - Augment search results with highlighted excerpts.
QueryObjectsTutorial - Unlock advanced search features by using Query objects instead of query strings.
The source material used by the tutorial app – a multi-text-file presentation
of the United States constitution – can be found in the sample
directory
at the root of the Lucy distribution, along with finished indexing and search
apps.
sample/indexer_simple.c # simple indexing executable
sample/search_simple.c # simple search executable
sample/indexer.c # indexing executable
sample/search.c # search executable
sample/us_constitution # corpus
The user is expected to be familiar with OO Perl and basic CGI programming.
The code in this tutorial assumes a Unix-flavored operating system and the Apache webserver, but will work with minor modifications on other setups.
More advanced and esoteric subjects are covered in Cookbook.
Copyright © 2010-2015 The Apache Software Foundation, Licensed under the
Apache License, Version 2.0.
Apache Lucy, Lucy, Apache, the Apache feather logo, and the Apache Lucy project logo are trademarks of The
Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their
respective owners.