Solr文档学习--Using the Solr Administration User Interface(续)

上一篇solr主要介绍了如何在控制台和命令行创建集合(Core/Collections),今天继续solr

Solr文档学习–Using the Solr Administration User Interface

首先启动solr

这里写图片描述

启动之后就可以看到上次创建的两个集合了(这次主要的操作mycollections)

这里写图片描述

在集合下面有很多的面板

这里写图片描述

我主要介绍一下Analysis,Documents和Query的使用,

Analysis

The Analysis screen lets you inspect how data will be handled according to the field, field type and dynamic field configurations found in your Schema. You can analyze how content would be handled during indexing or during query processing and view the results separately or at the same time. Ideally, you would want content to be handled consistently, and this screen allows you to validate the settings in the field type or field analysis chains.

这个是用来分词的。

默认没有中文分词

配置中文分词

参考Solr6.1配置中文分词

这里写图片描述

配置好并reload

这里写图片描述

Documents

The Documents screen provides a simple form allowing you to execute various Solr indexing commands in a variety of formats directly from the browser.

这个视图下我们可以建立索引

我们先在Query里查询一下

这里写图片描述

发现现在是没有任何数据的。我们开始建立索引

建立一个如下的索引

{id:123456,info:"我爱北京天安门"}

这里写图片描述

返回结果

这里写图片描述

再去Query查询一下

这里写图片描述

已经可以查到刚才建立的索引了

Query

You can use the screen to submit a search query to a Solr collection and analyze the results. In the example in the creenshot, a query has been submitted, and the screen shows the query results sent to the browser as JSON.

主要就是查询,可以设置很多参数。

各个参数的含义

字段描述
Request-handler (qt)Specifies the query handler for the request. If a query handler is not specified, Solr processes the response with the standard query handler.
qThe query event. See for an explanation of this parameter.
fqThe filter queries. See for more information on this parameter.
sortSorts the response to a query in either ascending or descending order based on the response’s score or another specified characteristic.
start, rowsstart is the offset into the query result starting at which documents should be returned. The default value is 0, meaning that the query should return results starting with the first document that matches. This field accepts the same syntax as the start query parameter, which is described in . is the number of rows to return.
flDefines the fields to return for each document. You can explicitly list the stored fields, functi , and you want to have returned by separating them with either a ons doc transformers comma or a space.
wtSpecifies the Response Writer to be used to format the query response. Defaults to XML if not specified.
indentClick this button to request that the Response Writer use indentation to make the responses more readable.
debugQueryClick this button to augment the query response with debugging information, including “explain info” for each document returned. This debugging information is intended to be intelligible to the administrator or programmer.
dismaxClick this button to enable the Dismax query parser. See for The DisMax Query Parser further information.
edismaxClick this button to enable the Extended query parser. See The Extended DisMax Query for further information.
hlClick this button to enable highlighting in the query response. See for more Highlighting information.
facetEnables faceting, the arrangement of search results into categories based on indexed terms. See for more information.
spatialClick to enable using location data for use in spatial or geospatial searches. See Spatial for more information.
spellcheckClick this button to enable the Spellchecker, which provides inline query suggestions based on other, similar, terms. See for more information.

具体的含义就不多解释了。

后面再写通过java客户端实现对solr的增删改查。

参考文献

Solr官方文档

已标记关键词 清除标记
Lucidworks for solr This guide includes the following sections: : This section guides you through the installation and setup of Solr. Getting Started : This section introduces the Solr Web-based Using the Solr Administration User Interface user interface. From your browser you can view configuration files, submit queries, view logfile settings and Java environment settings, and monitor and control distributed configurations. : This section describes how Solr organizes its data Documents, Fields, and Schema Design for indexing. It explains how a Solr schema defines the fields and field types which Solr use to organize data within the document files it indexes. : This section explains how Solr prepares Understanding Analyzers, Tokenizers, and Filters text for indexing and searching. Analyzers parse text and produce a stream of tokens, lexica units used for indexing and searching. Tokenizers break field data down into tokens. Filters perform other transformational or selective work on token streams. : This section describes the indexing process and basic Indexing and Basic Data Operations index operations, such as commit, optimize, and rollback. : This section presents an overview of the search process in Solr. It describes the Searching main components used in searches, including request handlers, query parsers, and response writers. It lists the query parameters that can be passed to Solr, and it describes features such as boosting and faceting, which can be used to fine-tune search results. : This section discusses performance tuning for Solr. It The Well-Configured Solr Instance begins with an overview of the file, then tells you how to configure cores solrconfig.xml with , how to configure the Lucene index writer, and more. solr.xml : This section discusses important topics for running and monitoring Solr. It Managing Solr describes running Solr in the Apache Tomcat servlet runner and Web server. Other topics include how to back up a Solr instance, and how to run Solr with Java Management Extensions (JMX). : This section tells you how to grow a Solr distribution by dividing a Scaling and Distribution large index into sections called shards, which are then distributed across multiple servers, or by replicating a single index across multiple services. : This section tells you how to access Solr through various client APIs, including Client APIs JavaScript, JSON, and Ruby.
相关推荐
©️2020 CSDN 皮肤主题: 酷酷鲨 设计师:CSDN官方博客 返回首页