eBook - ePub
Lucene 4 Cookbook
Edwood Ng, Vineeth Mohan
This is a test
Partager le livre
- 220 pages
- English
- ePUB (adapté aux mobiles)
- Disponible sur iOS et Android
eBook - ePub
Lucene 4 Cookbook
Edwood Ng, Vineeth Mohan
DĂ©tails du livre
Aperçu du livre
Table des matiĂšres
Citations
Foire aux questions
Comment puis-je résilier mon abonnement ?
Il vous suffit de vous rendre dans la section compte dans paramĂštres et de cliquer sur « RĂ©silier lâabonnement ». Câest aussi simple que cela ! Une fois que vous aurez rĂ©siliĂ© votre abonnement, il restera actif pour le reste de la pĂ©riode pour laquelle vous avez payĂ©. DĂ©couvrez-en plus ici.
Puis-je / comment puis-je télécharger des livres ?
Pour le moment, tous nos livres en format ePub adaptĂ©s aux mobiles peuvent ĂȘtre tĂ©lĂ©chargĂ©s via lâapplication. La plupart de nos PDF sont Ă©galement disponibles en tĂ©lĂ©chargement et les autres seront tĂ©lĂ©chargeables trĂšs prochainement. DĂ©couvrez-en plus ici.
Quelle est la différence entre les formules tarifaires ?
Les deux abonnements vous donnent un accĂšs complet Ă la bibliothĂšque et Ă toutes les fonctionnalitĂ©s de Perlego. Les seules diffĂ©rences sont les tarifs ainsi que la pĂ©riode dâabonnement : avec lâabonnement annuel, vous Ă©conomiserez environ 30 % par rapport Ă 12 mois dâabonnement mensuel.
Quâest-ce que Perlego ?
Nous sommes un service dâabonnement Ă des ouvrages universitaires en ligne, oĂč vous pouvez accĂ©der Ă toute une bibliothĂšque pour un prix infĂ©rieur Ă celui dâun seul livre par mois. Avec plus dâun million de livres sur plus de 1 000 sujets, nous avons ce quâil vous faut ! DĂ©couvrez-en plus ici.
Prenez-vous en charge la synthÚse vocale ?
Recherchez le symbole Ăcouter sur votre prochain livre pour voir si vous pouvez lâĂ©couter. Lâoutil Ăcouter lit le texte Ă haute voix pour vous, en surlignant le passage qui est en cours de lecture. Vous pouvez le mettre sur pause, lâaccĂ©lĂ©rer ou le ralentir. DĂ©couvrez-en plus ici.
Est-ce que Lucene 4 Cookbook est un PDF/ePUB en ligne ?
Oui, vous pouvez accĂ©der Ă Lucene 4 Cookbook par Edwood Ng, Vineeth Mohan en format PDF et/ou ePUB ainsi quâĂ dâautres livres populaires dans Computer Science et Databases. Nous disposons de plus dâun million dâouvrages Ă dĂ©couvrir dans notre catalogue.
Informations
Lucene 4 Cookbook
Table of Contents
Lucene 4 Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why Subscribe?
Free Access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Sections
Getting ready
How to do itâŠ
How it worksâŠ
There's moreâŠ
See also
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Introducing Lucene
Introduction
How Lucene works
Why is Lucene so popular?
Some Lucene implementations
Installing Lucene
How to do it...
How it worksâŠ
Setting up a simple Java Lucene project
Getting ready
How to do it...
How it works...
Obtaining an IndexWriter
How to do itâŠ
How it worksâŠ
Creating an analyzer
Getting ready
How to do it...
How it worksâŠ
Creating fields
How to do it...
How It Works
Creating and writing documents to an index
How to do it...
How it worksâŠ
Deleting documents
How to do it...
How it worksâŠ
Obtaining an IndexSearcher
How to do it...
How it worksâŠ
Creating queries with the Lucene QueryParser
How to do it...
How it worksâŠ
Performing a search
How to do it...
How it worksâŠ
Enumerating results
How to do it...
How it worksâŠ
2. Analyzing Your Text
Introduction
Obtaining a common analyzer
Getting ready
How to do it...
How it works...
There's moreâŠ
Obtaining a TokenStream
Getting ready
How to do it...
How it worksâŠ
Obtaining TokenAttribute values
Getting ready
How to do itâŠ
How it worksâŠ
Using PositionIncrementAttribute
Getting ready
How to do it...
How it worksâŠ
Using PerFieldAnalyzerWrapper
Getting ready
How to do itâŠ
How it worksâŠ
Defining custom TokenFilters
How to do itâŠ
How it worksâŠ
Defining custom analyzers
How to do itâŠ
How it worksâŠ
Defining custom tokenizers
How to do itâŠ
How it worksâŠ
Defining custom attributes
How to do itâŠ
How it worksâŠ
3. Indexing Your Data
Introduction
Obtaining an IndexWriter
How to do it...
How it works...
Creating a StringField
How to do it...
How it works...
Creating a TextField
How to do it...
How it works...
Creating a numeric field
How to do it...
How it works...
Creating a DocValue Field
How to do it...
How it works...
Transactional commits and index versioning
How to do it...
How it works...
Reusing field and document objects per thread
How to do It...
How it works...
Delving into field norms
How to do it...
How it works...
Changing similarity implementation used during indexing
Getting ready
How to do itâŠ
4. Searching Your Indexes
Introduction
Obtaining IndexReaders
How to do it...
How it works...
Un-inverting single-valued fields in memory with FieldCache
How to do it...
How it works...
TermVectors
How to do it...
How it works...
IndexSearcher
How to do it...
How it works...
Constructing queries
How to do it...
How it works...
Specifying sort logic
How to do it...
How it works...
Forming a search result
How to do it...
How it works...
Pagination
How to do it...
How it works...
Using Collectors
How to do it...
How it works...
Sorting with custom FieldComparator
How to do it...
How it works...
5. Near Real-time Searching
Introduction
Using the DirectoryReader to open index in Near Real-Time
How to do it...
How it works...
Using the SearcherManager to refresh IndexSearcher
How to do it...
How it works...
Generational indexing with TrackingIndexWriter
How to do itâŠ
How it works...
Maintaining search sessions with SearcherLifetimeManager
How to do itâŠ
How it worksâŠ
Performance tuning: latency and throughput
How to do itâŠ
How it worksâŠ
6. Querying and Filtering Data
Introduction
Performing advanced filtering
How to do it...
How it worksâŠ
Creating a custom filter
How to do it...
Searching with QueryParser
How to do it..
Wildcard search
Term range search
Autogenerated phrase query
Date resolution
Default operator
Enable position increments
Fuzzy query
Lowercase expanded term
Phrase slop
TermQuery and TermRangeQuery
How to do it..
BooleanQuery
How to do it..
How it worksâŠ
PrefixQuery and WildcardQuery
How to do it...
How it worksâŠ
PhraseQuery and MultiPhraseQuery
How to do it...
How it worksâŠ
FuzzyQuery
How to do it...
How it worksâŠ
NumericRangeQuery
How to do itâŠ
How it worksâŠ
DisjunctionMaxQuery
How to do itâŠ
How it worksâŠ
RegexpQuery
How to do itâŠ
SpanQuery
How to do it...
How it worksâŠ
CustomScoreQuery
How to do itâŠ
How it worksâŠ
7. Flexible Scoring
Introduction
Overriding similarity
How to do itâŠ
How it worksâŠ
There's moreâŠ
The BM25 model
The language model
The divergence from randomness model
The information-based Model
Implementing the BM25 model
How to do ItâŠ
How it worksâŠ
Implementing the language model
How to do itâŠ
Implementing the divergence from randomness model
How to do ItâŠ
How it worksâŠ
Implementing the information-based model
How to do ItâŠ
How it worksâŠ
8. Introducing Elasticsearch
Introduction
Getting Elasticsearch
Getting ready
How to do it...
How it works...
There's moreâŠ
Creating a new index
How to do itâŠ
How it worksâŠ
Predefine field mappings
How to do it...
How it works....
Adding a document
How to do it...
How it works...
Deleting a document
How to do itâŠ
How it worksâŠ
Updating a document
How to do itâŠ
How it worksâŠ
Performing bulk indexing
How to do itâŠ
How it worksâŠ
Searching the index
How to do it...
How it works...
There's moreâŠ
Scaling Elasticsearch
How to do itâŠ
How it worksâŠ
There's moreâŠ
9. Extending Lucene with Modules
Introduction
Exploring spatial search
Getting readyâŠ
How to do itâŠ
How it worksâŠ
There's moreâŠ
Implementing joins
Getting readyâŠ
How to do itâŠ
Performing faceting
Getting readyâŠ
How to do itâŠ
How it worksâŠ
Implementing grouping
Getting readyâŠ
How to do itâŠ
Employing autosuggest
Getting readyâŠ
How to do itâŠ
Implementing highlighting
Getting readyâŠ
How to do itâŠ
How it worksâŠ
Index
Lucene 4 Cookbook
Copyright © 2015 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the authors, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products menti...