- Lucene 4 Cookbook
- Edwood Ng Vineeth Mohan
- 307字
- 2021-07-16 14:07:47
Chapter 1. Introducing Lucene
Many applications in the modern era often require the handling of large datasets. Managing and searching these large collections of information can be very challenging, hence the creation of efficient and high performance search applications has become a necessity. For decades, many data scientists' research focused on information retrieval. One can say that the open source community now bears the fruits of this hard work as many open source data management platforms are developed. The Apache Software Foundation's answer to this: The Apache Lucene has gained popularity recently and is considered the go-to text search framework by many.
Let us take a look at the recipes that we are going to cover in this chapter:
- Installing Lucene
- Setting up a simple Java Lucene project
- Obtaining an IndexWriter
- Creating an analyzer
- Creating fields
- Creating and writing documents to an index
- Deleting documents
- Obtaining an IndexSearcher
- Creating queries with the Lucene QueryParser
- Performing a search
- Enumerating results
Getting Lucene and setting up a Lucene Java project serves as a guide for you to get started with Lucene. Instructions to download and set up Lucene are covered in detail in these two recipes. All the recipes that follow introduce basic Lucene functionalities, which do not require in-depth knowledge to understand. We will learn how to create an index and add documents to an index. We will practice deleting documents and searching these documents to locate information. The Creating fields section of this chapter introduces you to Lucene's way of handling information. Then, we will learn how to formulate search queries. At the end of this chapter, we will show you how to retrieve search results from Lucene. Hopefully, by completing this chapter, you will gain enough knowledge to set up Lucene and have a good grasp of Lucene's concept of indexing and searching information.
- VMware View Security Essentials
- Rust編程從入門到實(shí)戰(zhàn)
- Python機(jī)器學(xué)習(xí)編程與實(shí)戰(zhàn)
- 青少年學(xué)Python(第1冊(cè))
- 精通Python自動(dòng)化編程
- SQL 經(jīng)典實(shí)例
- Swift 4從零到精通iOS開發(fā)
- Getting Started with Python and Raspberry Pi
- 深度學(xué)習(xí)原理與PyTorch實(shí)戰(zhàn)(第2版)
- PHP 7從零基礎(chǔ)到項(xiàng)目實(shí)戰(zhàn)
- Principles of Strategic Data Science
- 深入實(shí)踐DDD:以DSL驅(qū)動(dòng)復(fù)雜軟件開發(fā)
- Mastering Android Studio 3
- Python預(yù)測(cè)分析實(shí)戰(zhàn)
- Responsive Web Design with jQuery