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
About the Authors
About the Reviewers

Chapter 4. Searching Your Indexes

In this chapter, we will cover the following recipes:

  • Obtaining IndexReaders

  • Un-inverting single-valued fields in memory with FieldCache

  • TermVectors

  • IndexSearcher

  • Constructing queries

  • Specifying sort logic

  • Forming a search result

  • Pagination

  • Using Collectors

  • Sorting with custom FieldComparator