Knowledge center

Solr快速入门文档阅读推荐——官方文档常用章节推荐-阿里云开发者社区(en)

2019-11-22 00:00:00 mimukeji

概述

本文整理了Solr常见用法涉及的基础章节列表,通过这些章节的阅读学习,同学可以零基础快速入门使用Solr,并能够满足大部分企业的业务检索需求开发,掌握了熟悉使用Solr的基本技能。
由于Solr功能丰富,插件灵活,官方文档仅做手册的编辑方式涵盖所有的功能内容描述,但众多地方还是欠缺连贯性。难做到像教科书一样,让同学从头到尾高效学习一遍。
这里整理了Solr常用功能涉及的章节列表阅读推荐,并针对具体章节概念做了简单描述,希望未接触过Solr的同学可以快速入门,节省更多的学习时间,快速实践起来。

章节推荐

完整官方文档链接如下:solr7.3完整官方文档
入门阅读可以参照如下目录:

About This Guide 了解 //默认Solr服务端口8983, 有V1/V2 两种接口访问Solr

Getting Started 了解

  • Solr Tutorial 了解 //启动solr服务,运行index/search demo
  • A Quick Overview 了解
  • Solr System Requirements 了解 //主要是看具体版本的jdk要求
  • Installing Solr 了解 //了解solr安装过程

Deployment and Operations 了解

  • Solr Control Script Reference 熟悉 //熟悉solr -help 命令脚本所提供各种管理功能
  • Solr Configuration Files 熟悉 //Cloud模式下的solrconfig.xml和managed-schema作用

Using the Solr Administration User Interface

  • Overview of the Solr Admin UI 了解 //主要熟悉Cloud模式下的Solr Admin web UI管理collection
  • Logging 了解
  • Cloud Screens 了解
  • Collections / Core Admin 了解
  • Java Properties 了解
  • Thread Dump 了解
  • Collection-Specific Tools了解

    • Documents Screen了解
    • Files Screen 熟悉
    • Query Screen 熟悉
    • Schema Browser Screen 了解
  • Core-Specific Tools

    • Ping 了解
    • Plugins & Stats Screen 了解
    • Segments Info 了解

Documents, Fields, and Schema Design 熟悉

  • Overview of Documents, Fields, and Schema Design 熟悉 //熟悉solrconfig.xml和managed-schema配置文件
  • Solr Field Types 熟悉

    • Field Type Definitions and Properties 熟悉 //理解 indexed/stored/docValues/multiValued属性
    • Field Types Included with Solr 熟悉 //理解常见类型int/long/double/float/boolean/string 相对应预定义好的类型
    • Field Properties by Use Case 了解 //了解根据业务检索用途,需要开启哪些属性的参照表格
  • Defining Fields 了解
  • Copying Fields 了解
  • Dynamic Fields 了解
  • Other Schema Elements 了解
  • Schema API 熟悉 //熟悉api修改schema配置文件的各种配置项
  • DocValues 理解//查询业务涉及到facet&function/sort 时推荐开启

Understanding Analyzers, Tokenizers, and Filters 了解

  • Uploading Data with Index Handlers 了解

    • Transforming and Indexing Custom JSON 了解

Searching 熟悉

  • Query Syntax and Parsing 熟悉

    • Common Query Parameters 熟悉
    • The Standard Query Parser 熟悉
    • Function Queries 了解 //结合facet可以做min/max/avg/sum等聚合统计
  • JSON Request API 了解
  • JSON Facet API 了解
  • Faceting 了解
  • Pagination of Results 熟悉 //场景分页实现与cursorMark深翻
  • Collapse and Expand Results 了解 //聚合分组功能,类似group by
  • Result Grouping 了解
  • Response Writers 了解
  • Near Real Time Searching熟悉 //理解commit相关配置项
  • RealTime Get 了解

SolrCloud 了解

  • Getting Started with SolrCloud 了解
  • How SolrCloud Works 了解

    • Shards and Indexing Data in SolrCloud 熟悉
    • Distributed Requests 了解
  • SolrCloud Resilience 了解

    • SolrCloud Recoveries and Write Tolerance 了解
    • SolrCloud Query Routing And Read Tolerance 了解
  • SolrCloud Configuration and Parameters 了解

    • Setting Up an External ZooKeeper Ensemble 了解
    • Using ZooKeeper to Manage Configuration Files 了解
    • Collections API 了解
    • Parameter Reference 了解
    • Command Line Utilities 熟悉
    • SolrCloud with Legacy Configuration Files 了解
    • ConfigSets API 熟悉

The Well-Configured Solr Instance 熟悉

  • Configuring solrconfig.xml 熟悉

    • IndexConfig in SolrConfig 熟悉 //SortingMergePolicy实现预排序,业务查询有固定排序需求的可以考虑
    • UpdateHandlers in SolrConfig 熟悉 //熟悉几个commit参数配置
    • Query Settings in SolrConfig 熟悉 //理解几个cache配置功能,及其应用
  • Solr Cores and solr.xml 了解

    • Format of solr.xml 了解
    • Config Sets 了解 //可以对collection配置目录管理
  • Configuration APIs了解

    • Config API 熟悉 //可以动态修改collection某个配置项

Monitoring Solr 了解

  • Configuring Logging 了解
  • Performance Statistics Reference 了解 //了解一些关系的metrics指标含义

Client APIs 熟悉

  • Choosing an Output Format 了解
  • Client API Lineup 了解
  • Using Python 了解
  • Using SolrJ 熟悉 //掌握CloudSolrClient api使用

小结

上述章节基本涵盖了大部分企业检索查询需求的功能,也是使用阿里云HBase全文服务的 Solr基础知识。如有特殊的需求,再针对性阅读官方手册即可。
我们在 solr企业业务常见各种demo与答疑 中整理了许多查询统计场景demo供参考,如有新特性欢迎评论,后续会更新相应demo,供大家使用。

链接

云HBase全文服务使用文档
solr7.3完整官方文档
solr常用检索查询业务demo

(en)

阿里云优惠新机+优惠券

本文转载自网络,如有侵权,请联系我们删除。

Home

About

product

success

news

form

bbs

contact

工单(en)

阿里云报价咨询(en)