Book Image

Lucene 4 Cookbook

By : Edwood Ng, Vineeth Mohan
Book Image

Lucene 4 Cookbook

By: Edwood Ng, Vineeth Mohan

Overview of this book

Table of Contents (16 chapters)
Lucene 4 Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 2. Analyzing Your Text

In this chapter, we will cover the following recipes:

  • Obtaining a common analyzer

  • Obtaining a TokenStream

  • Obtaining TokenAttribute values

  • Using PositionIncrementAttribute

  • Using PerFieldAnalyzerWrapper

  • Defining custom TokenFilters

  • Defining custom analyzers

  • Defining custom tokenizers

  • Defining custom attributes