没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
试读
763页
Solr in Action by Trey Grainger , Timothy Potter Book Description Publication Date: April 5, 2014 | ISBN-10: 1617291021 | ISBN-13: 978-1617291029 | Edition: 1 Summary Solr in Action is a comprehensive guide to implementing scalable search using Apache Solr. This clearly written book walks you through well-documented examples ranging from basic keyword searching to scaling a system for billions of documents and queries. It will give you a deep understanding of how to implement core Solr capabilities. What's Inside - How to scale Solr for big data - Rich real-world examples - Solr as a NoSQL data store - Advanced multilingual, data, and relevancy tricks - Coverage of versions through Solr 4.7
资源推荐
资源详情
资源评论
2
For online information and ordering of this and other Manning books, please visit www.manning.com.
The publisher offers discounts on this book when ordered in quantity. For more information, please
contact
Special Sales Department
Manning Publications Co.
20 Baldwin Road
PO Box 261
Shelter Island, NY 11964
Email: orders@manning.com
©2014 by Manning Publications Co. All rights reserved.
No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form
or by means electronic, mechanical, photocopying, or otherwise, without prior written permission of
the publisher
Photographs in this book were created by Martin Evans and Jordan Hochenbaum, unless otherwise
noted. Illustrations were created by Martin Evans, Joshua Noble, and Jordan Hochenbaum. Fritzing
(fritzing.org) was used to create some of the circuit diagrams.
Many of the designations used by manufacturers and sellers to distinguish their products are claimed
as trademarks. Where those designations appear in the book, and Manning Publications was aware of
a trademark claim, the designations have been printed in initial caps or all caps.
Recognizing the importance of preserving what has been written, it is Manning’s policy to have the
books we publish printed on acid-free paper, and we exert our best efforts to that end. Recognizing
also our responsibility to conserve the resources of our planet, Manning books are printed on paper
that is at least 15 percent recycled and processed without the use of elemental chlorine.
Manning Publications Co.
20 Baldwin Road
PO Box 261
Shelter Island, NY 11964
Development editors: Elizabeth Lexleigh, Susan Conant
Copyeditor: Melinda Rankin
Proofreader: Elizabeth Martin
Typesetter: Dennis Dalinnik
Cover designer: Marija Tudor
ISBN: 9781617291029
Printed in the United States of America 1 2 3 4 5 6 7 8 9 10 – MAL – 19 18 17 16 15 14
3
Table of Contents
Foreword ...................................................................................................... 7
Preface .......................................................................................................... 9
Acknowledgments ....................................................................................... 11
Trey Grainger ................................................................................................................... 11
Timothy Potter ................................................................................................................. 12
About this Book ...........................................................................................12
Roadmap ........................................................................................................................... 12
How to use this book ....................................................................................................... 15
Code conventions and downloads ................................................................................. 16
Author Online .................................................................................................................. 17
About the cover illustration ........................................................................................... 18
Part 1. Meet Solr ..........................................................................................19
Chapter 1. Introduction to Solr.................................................................. 20
1.1. Why do I need a search engine?.............................................................................. 21
1.2. What is Solr? ............................................................................................................. 27
1.3. Why Solr?................................................................................................................... 36
1.4. Features overview..................................................................................................... 39
1.5. Summary.................................................................................................................... 45
Chapter 2. Getting to know Solr ................................................................ 47
2.1. Getting started .......................................................................................................... 48
2.2. Searching is what it’s all about............................................................................... 59
2.3. Tour of the Solr administration console ............................................................... 69
2.4. Adapting the example to your needs ..................................................................... 71
2.5. Summary ................................................................................................................... 72
Chapter 3. Key Solr concepts ..................................................................... 74
3.1. Searching, matching, and finding content ............................................................ 74
3.2. Relevancy .................................................................................................................. 95
3.3. Precision and Recall .............................................................................................. 103
3.4. Searching at scale ................................................................................................... 107
3.5. Summary ................................................................................................................. 114
Chapter 4. Configuring Solr ...................................................................... 115
4.1. Overview of solrconfig.xml.................................................................................... 118
4.2. Query request handling......................................................................................... 124
4.3. Managing searchers ............................................................................................... 139
4.4. Cache management ............................................................................................... 144
4.5. Remaining configuration options ........................................................................ 153
4.6. Summary ................................................................................................................. 153
Chapter 5. Indexing...................................................................................156
4
5.1. Example microblog search application ............................................................... 156
5.2. Designing your schema ......................................................................................... 161
5.3. Defining fields in schema.xml .............................................................................. 167
5.4. Field types for structured nontext fields............................................................. 177
5.5. Sending documents to Solr for indexing............................................................. 186
5.6. Update handler....................................................................................................... 193
5.7. Index management ................................................................................................ 203
5.8. Summary ................................................................................................................. 209
Chapter 6. Text analysis ............................................................................ 211
6.1. Analyzing microblog text....................................................................................... 212
6.2. Basic text analysis .................................................................................................. 216
6.3. Defining a custom field type for microblog text ................................................ 227
6.4. Advanced text analysis .......................................................................................... 242
6.5. Summary ................................................................................................................. 250
Part 2. Core Solr capabilities ................................................................... 252
Chapter 7. Performing queries and handling results.............................. 253
7.1. The anatomy of a Solr request .............................................................................. 253
7.2. Working with query parsers ................................................................................. 264
7.3. Queries and filters .................................................................................................. 268
7.4. The default query parser (Lucene query parser) ............................................... 275
7.5. Handling user queries (eDisMax query parser)................................................. 283
7.6. Other useful query parsers.................................................................................... 296
7.7. Returning results .................................................................................................... 303
7.8. Sorting results......................................................................................................... 312
7.9. Debugging query results ....................................................................................... 315
7.10. Summary ............................................................................................................... 317
Chapter 8. Faceted search........................................................................ 318
8.1. Navigating your content at a glance .................................................................... 319
8.2. Setting up test data ................................................................................................ 323
8.3. Field faceting .......................................................................................................... 329
8.4. Query faceting ........................................................................................................ 336
8.5. Range faceting ........................................................................................................ 339
8.6. Filtering upon faceted values ............................................................................... 343
8.7. Multiselect faceting, keys, and tags ..................................................................... 350
8.8. Beyond the basics .................................................................................................. 356
8.9. Summary ................................................................................................................. 356
Chapter 9. Hit highlighting ...................................................................... 358
9.1. Overview of hit highlighting ................................................................................. 359
9.2. How highlighting works ........................................................................................ 360
9.3. Improving performance using FastVectorHighlighter ..................................... 381
5
9.4. PostingsHighlighter ............................................................................................... 383
9.5. Summary ................................................................................................................. 386
Chapter 10. Query suggestions ................................................................ 387
10.1. Spell-check............................................................................................................. 387
10.2. Autosuggesting query terms ............................................................................... 401
10.3. Suggesting document field values ..................................................................... 405
10.4. Suggesting queries based on user activity ........................................................ 409
10.5. Summary ............................................................................................................... 414
Chapter 11. Result grouping/field collapsing .......................................... 416
11.1. Result grouping vs. field collapsing .................................................................... 417
11.2. Skipping duplicate documents............................................................................ 417
11.3. Returning multiple documents per group......................................................... 429
11.4. Grouping by functions and queries .................................................................... 432
11.5. Paging and sorting grouped results.................................................................... 437
11.6. Grouping gotchas .................................................................................................. 440
11.7. Efficient field collapsing with the Collapsing query parser ............................ 445
11.8. Summary................................................................................................................ 446
Chapter 12. Taking Solr to production .................................................... 448
12.1. Developing a Solr distribution ............................................................................ 448
12.2. Deploying Solr ...................................................................................................... 449
12.3. Hardware and server configuration................................................................... 451
12.4. Data acquisition strategies.................................................................................. 461
12.5. Sharding and replication ..................................................................................... 465
12.6. Solr core management ......................................................................................... 475
12.7. Managing clusters of servers .............................................................................. 482
12.8. Querying and interacting with Solr ................................................................... 487
12.9. Monitoring Solr’s performance .......................................................................... 492
12.10. Upgrading between Solr versions .................................................................... 503
12.11. Summary .............................................................................................................. 503
Part 3. Taking Solr to the next level ......................................................... 505
Chapter 13. SolrCloud .............................................................................. 506
13.1. Getting started with SolrCloud ........................................................................... 507
13.2. Core concepts ........................................................................................................ 519
13.3. Distributed indexing ............................................................................................ 534
13.4. Distributed search ................................................................................................ 541
13.5. Collections API ..................................................................................................... 545
13.6. Basic system-administration tasks .................................................................... 552
13.7. Advanced topics .................................................................................................... 556
13.8. Summary ............................................................................................................... 560
Chapter 14. Multilingual search .............................................................. 562
剩余762页未读,继续阅读
麻团
- 粉丝: 5
- 资源: 83
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
- 4
- 5
- 6
前往页