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官方文档

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值