Lucene in Action: Covers Apache Lucene 3.0 (2nd Edition)

Lucene in Action: Covers Apache Lucene 3.0 (2nd Edition)

Erik Hatcher, Otis Gospodnetic, Michael McCandless

Language: English

Pages: 528

ISBN: 2:00047045

Format: PDF / Kindle (mobi) / ePub

When Lucene first hit the scene five years ago, it was nothing short of amazing. By using this open-source, highly scalable, super-fast search engine, developers could integrate search into applications quickly and efficiently. A lot has changed since then-search has grown from a "nice-to-have" feature into an indispensable part of most enterprise applications. Lucene now powers search in diverse companies including Akamai, Netflix, LinkedIn, Technorati, HotJobs, Epiphany, FedEx, Mayo Clinic, MIT, New Scientist Magazine, and many others.

Some things remain the same, though. Lucene still delivers high-performance search features in a disarmingly easy-to-use API. Due to its vibrant and diverse open-source community of developers and users, Lucene is relentlessly improving, with evolutions to APIs, significant new features such as payloads, and a huge increase (as much as 8x) in indexing speed with Lucene 2.3.

And with clear writing, reusable examples, and unmatched advice on best practices, Lucene in Action, Second Edition is still the definitive guide to developing with Lucene.

Introduction to Programming Using Python

concrete5 Beginner's Guide (2nd Edition)

Dart: Up and Running

Beginning Windows Phone App Development

Web Application Development with Yii and PHP (2nd Edition)











Improving Decisions About Health, Wealth, and Happiness Richard H. Thaler, Cass R. Sunstein /health information architecture,decisions,choices Imperial Secrets of Health and Longevity Bob Flaws /health/alternative/Chinese diet chinese medicine qi gong health herbs Tao Te Ching 道德經 Stephen Mitchell /philosophy/eastern taoism Gödel, Escher, Bach: an Eternal Golden Braid Douglas Hofstadter /technology/computers/ai artificial intelligence number theory mathematics music Mindstorms:

of the well-designed software. You don’t need in-depth knowledge about how Lucene’s information indexing and retrieval work in order to start using it. Moreover, Lucene’s straightforward API requires using only a handful of classes 3 4 CHAPTER 1 Meet Lucene to get started. Finally, for those of you tired of bloatware, Lucene’s core JAR is refreshingly tiny—only 1 MB —and it has no dependencies! In this chapter we cover the overall architecture of a typical search application and where

on your hard disk, or perhaps search your email, web pages, or even data stored in a database. Lucene can help you do that. But before you can search something, you’ll have to index it, and Lucene will help you do that as well, as you’ll learn in this chapter. In chapter 1, you saw a simple indexing example. This chapter goes further and teaches you about index updates, parameters you can use to tune the indexing process, and more advanced indexing techniques that will help you get the most out

powerful BooleanQuery can join any number of clauses together, including arbitrarily nested clauses, using Boolean constraints. Finally we show how simple it is to create a complex search query from a text search expression entered by the end user using Lucene’s built-in QueryParser. This is our first of three chapters about Lucene’s search APIs, so we’ll limit our discussion for now to the primary classes that you’ll typically use for search integration, shown in table 3.1. When you’re querying

beginning with a specified string. It’s deceptively handy. The following code demonstrates how you can query a hierarchical structure recursively with a simple PrefixQuery. The documents contain a category field representing a hierarchical structure, which is perfect for matching with a PrefixQuery, as shown in listing 3.5. Listing 3.5 PrefixQuery public class PrefixQueryTest extends TestCase { public void testPrefix() throws Exception { Directory dir = TestUtil.getBookIndexDirectory();

Download sample