You are previewing Instant Lucene.NET.
O'Reilly logo
Instant Lucene.NET

Book Description

Learn how to index and search through unstructured data using Lucene.NET

  • Learn something new in an Instant! A short, fast, focused guide delivering immediate results

  • Learn how to execute searches for document indexes

  • Understand scoring and influencing search results

  • Easily maintain your index

In Detail

Lucene.NET is a high performance search library for .NET based upon the proven Lucene open source search project that powers many of the world’s most powerful search tools. Using Lucene.NET in your application can easily provide these capabilities, which are relatively unfamiliar to .NET developers.

Instant Lucene.NET is a practical, hands-on guide that provides you with a number of clear step-by-step recipes, which will help you take advantage of the power of Lucene.NET to add the ability to search through unstructured data in your .NET application.

This book demonstrates how to use Lucene.NET, breaking down the mystery and confusion around how to use the library in your .NET application with clear, practical recipes.

You will learn how to build your own index from complex documents and how to execute queries in order to identify matching documents for specific words and phrases as well as content that starts with or has “fuzziness”.

By the end of the book, you will have learned all the essentials you need to know to add search to applications, as well as how to manage the search process and performance as your data grows.

Table of Contents

  1. Instant Lucene.NET
    1. Instant Lucene.NET
    2. Credits
    3. About the Author
    4. About the Reviewer
    5. www.PacktPub.com
      1. Support files, eBooks, discount offers and more
        1. Why Subscribe?
        2. Free Access for Packt account holders
    6. Preface
      1. What this book covers
      2. What you need for this book
      3. Who this book is for
      4. Conventions
      5. Reader feedback
      6. Customer support
        1. Downloading the example code
        2. Errata
        3. Piracy
        4. Questions
    7. 1. Instant Lucene.NET
      1. Creating a project using Lucene.NET (Must know)
        1. How to do it...
      2. Creating a Lucene.NET index (Must know)
        1. How to do it...
        2. How it works…
        3. There's more…
          1. Analyzers
          2. Adding multiple files to an index
      3. Searching for an index with TermQuery (Must know)
        1. How to do it...
      4. Searching using QueryParser (Should know)
        1. How to do it...
        2. How it works…
        3. There's more…
          1. Searching for an exact phrase…
          2. Indexing the same field multiple times…
      5. Indexing numbers, dates, and time (Become an expert)
        1. How to do it...
        2. How it works…
      6. Advanced index searches (Become an expert)
        1. How to do it...
          1. Executing a search with a PhraseQuery
          2. Executing a search with WildcardQuery
          3. Executing a search with FuzzyQuery
        2. There's more…
      7. Understanding Lucene.NET's scoring (Become an expert)
        1. How to do it…
        2. There's more…
          1. Boosting a document during indexing
          2. Boosting results of a document via a subquery
      8. Ordering search results (Should know)
        1. How to do it…
        2. How it works…
        3. There's more…
      9. Narrowing the search space using filters (Become an expert)
        1. How to do it…
      10. Deleting documents from an index (Should know)
        1. How to do it…
        2. How it works…
        3. There's more…
          1. Deleting documents with IndexReader
          2. Reclaiming disk space from deleted documents
      11. Updating a document's search data in an index (Become an expert)
        1. How to do it…
        2. How it works…
      12. Optimizing and merging index segments (Become an expert)
        1. How to do it…
        2. How it works…
      13. Stopping a slow search (Become an expert)
        1. How to do it…
        2. How it works…