当前位置:网站首页>Solr basic operations 9
Solr basic operations 9
2022-06-30 00:08:00 【franket】
Attribute matching
q=field:value More detailed attribute qualification is possible
For example, search only _version_ by 1511824568810995712 Documents
[[email protected] solr-5.3.0]# curl "http://localhost:8983/solr/gettingstarted/select?wt=json&indent=true&q=_version_:1511824568810995712"
{
"responseHeader":{
"status":0,
"QTime":18,
"params":{
"indent":"true",
"q":"_version_:1511824568810995712",
"wt":"json"}},
"response":{"numFound":1,"start":0,"maxScore":7.851185,"docs":[
{
"id":"/data/solr/solr-5.3.0/docs/solr-morphlines-cell/allclasses-noframe.html",
"title":["All Classes (Solr 5.3.0 API)"],
"stream_content_type":["text/html"],
"stream_size":[1059],
"content_encoding":["UTF-8"],
"date":["2015-08-17T00:00:00Z"],
"x_parsed_by":["org.apache.tika.parser.DefaultParser",
"org.apache.tika.parser.html.HtmlParser"],
"content_type":["text/html; charset=utf-8"],
"resourcename":["/data/solr/solr-5.3.0/docs/solr-morphlines-cell/allclasses-noframe.html"],
"dc_title":["All Classes (Solr 5.3.0 API)"],
"_version_":1511824568810995712}]
}}
[[email protected] solr-5.3.0]# Multi-keyword matching ( or )
If you want to perform multi keyword search , Just use + , for example : q=ui+test or q=’ui+test’
[[email protected] solr-5.3.0]# curl "http://localhost:8983/solr/gettingstarted/select?wt=json&indent=true&fl=id&rows=3&q=test"
{
"responseHeader":{
"status":0,
"QTime":13,
"params":{
"fl":"id",
"indent":"true",
"q":"test",
"wt":"json",
"rows":"3"}},
"response":{"numFound":204,"start":0,"maxScore":0.48749265,"docs":[
{
"id":"/data/solr/solr-5.3.0/docs/solr-test-framework/overview-summary.html"},
{
"id":"/data/solr/solr-5.3.0/docs/solr-test-framework/org/apache/solr/analysis/package-frame.html"},
{
"id":"/data/solr/solr-5.3.0/docs/solr-test-framework/org/apache/solr/core/package-frame.html"}]
}}
[[email protected] solr-5.3.0]# curl "http://localhost:8983/solr/gettingstarted/select?wt=json&indent=true&fl=id&rows=3&q=ui"
{
"responseHeader":{
"status":0,
"QTime":8,
"params":{
"fl":"id",
"indent":"true",
"q":"ui",
"wt":"json",
"rows":"3"}},
"response":{"numFound":31,"start":0,"maxScore":0.3156422,"docs":[
{
"id":"/data/solr/solr-5.3.0/docs/solr-core/org/apache/solr/servlet/package-summary.html"},
{
"id":"/data/solr/solr-5.3.0/docs/solr-core/org/apache/solr/handler/admin/package-summary.html"},
{
"id":"/data/solr/solr-5.3.0/docs/solr-core/org/apache/solr/core/package-use.html"}]
}}
[[email protected] solr-5.3.0]# curl "http://localhost:8983/solr/gettingstarted/select?wt=json&indent=true&fl=id&rows=3&q=ui+test"
{
"responseHeader":{
"status":0,
"QTime":13,
"params":{
"fl":"id",
"indent":"true",
"q":"ui test",
"wt":"json",
"rows":"3"}},
"response":{"numFound":234,"start":0,"maxScore":0.17063226,"docs":[
{
"id":"/data/solr/solr-5.3.0/docs/changes/Changes.html"},
{
"id":"/data/solr/solr-5.3.0/docs/solr-test-framework/overview-summary.html"},
{
"id":"/data/solr/solr-5.3.0/docs/solr-test-framework/org/apache/solr/analysis/package-frame.html"}]
}}
[[email protected] solr-5.3.0]# Tip: The results of matching multiple keywords at the same time will be ranked higher
边栏推荐
- New titanium cloud service won the "2022 love analysis · panoramic report of it operation and maintenance manufacturers" cloud management platform CMP representative manufacturer
- 漫画安全HIDS、EDR、NDR、XDR
- Analysis of common vlog parameters
- Table responsive layout tips for super nice
- I wonder if I can open an account today? In addition, is it safe to open an account online now?
- [wechat applet] understand the basic composition of the applet project
- solo 博客皮肤导入 skins 文件夹后出现 500 错误
- Embedded development: Hardware in the loop testing
- Cacti settings for spin polling
- Getting started with qpainter: drawing the chess interface
猜你喜欢

FPGA Development (1) -- serial port communication

AI首席架构师9-胡晓光 《飞桨模型库与行业应用》

Andorid source build/envsetup.sh 该知道的细节

QT learning 07 coordinate system in QT
![复制带随机指针的链表[空间换时间--hash记录]](/img/d9/d81e0e4f81174c61275e4affe0777a.png)
复制带随机指针的链表[空间换时间--hash记录]

HPE launched ARM CPU general server product

MySQL:SQL概述及数据库系统介绍 | 黑马程序员

架构实战营模块5作业

这次的PMP考试(6月25日),有人欢喜有人忧,原因就在这...

FPGA Development (2) -- IIC communication
随机推荐
shell-运算符
【微信小程序】认识小程序项目的基本组成结构
Copy linked list with random pointer [space for time --hash record]
How to write controller layer code gracefully?
Unity splashimage scaling problem
Applet plug-in access, development and precautions
Construction of module 5 of actual combat Battalion
Siemens low code platform connects MySQL through database connector to realize addition, deletion, modification and query
ThinkPad VMware installation virtual machine: this host supports Intel VT-x, but Intel VT-x is disabled (problem resolution)
多数元素II[求众数类之摩尔投票法]
Basic tutorial for installing monggodb in win10
Solr基础操作13
爬虫入门实战:斗鱼弹幕数据抓取,附送11节入门笔记
[leetcode] a number that appears only once [136]
Cartoon security HIDS, EDR, NDR, XDR
代码分析平台 SonarQube 实战
Basic operations such as MySQL startup under Windows platform
Leetcode (76) -- Minimum Covering substring
Bee common configuration
solo 博客皮肤导入 skins 文件夹后出现 500 错误