当前位置:网站首页>Solr基础操作10
Solr基础操作10
2022-06-29 23:56:00 【franket】
多关键字匹配(且)
+(%2B) 前缀代表必须包含
[[email protected] solr-5.3.0]# curl "http://localhost:8983/solr/gettingstarted/select?wt=json&indent=true&fl=id&rows=3&q=%2Bone+%2Bthree"
{
"responseHeader":{
"status":0,
"QTime":11,
"params":{
"fl":"id",
"indent":"true",
"q":"+one +three",
"wt":"json",
"rows":"3"}},
"response":{"numFound":20,"start":0,"maxScore":0.41965395,"docs":[
{
"id":"/data/solr/solr-5.3.0/docs/solr-core/org/apache/solr/schema/SimplePreAnalyzedParser.html"},
{
"id":"/data/solr/solr-5.3.0/docs/solr-core/org/apache/solr/util/doc-files/min-should-match.html"},
{
"id":"/data/solr/solr-5.3.0/docs/solr-core/org/apache/solr/handler/DumpRequestHandler.html"}]
}}
[[email protected] solr-5.3.0]# By default, when you search for multiple terms and/or phrases in a single query, Solr will only require that one of them is present in order for a document to match. Documents containing more terms will be sorted higher in the results list. You can require that a term or phrase is present by prefixing it with a “+”; conversely, to disallow the presence of a term or phrase, prefix it with a “-“. To find documents that contain both terms “one” and “three”, enter +one +three in the q param in the core-specific Admin UI Query tab. Because the “+” character has a reserved purpose in URLs (encoding the space character), you must URL encode it for curl as “%2B”: To search for documents that contain the term “two” but don’t contain the term “one”, enter +two -one in the q param in the Admin UI. Again, URL encode “+” as “%2B”:
边栏推荐
- MySQL multi table query
- QT learning 06 widgets and window types
- Provide effective performance evaluation 
- 这次的PMP考试(6月25日),有人欢喜有人忧,原因就在这...
- modelsim的TCL脚本的define incdir命令解析
- 简单理解B树和B+树
- LC: maximum subarray and
- Which securities company should I choose to open an account online? Also, is it safe to open an account online?
- Construction of module 5 of actual combat Battalion
- Divisor
猜你喜欢

Matplotlib histogram of Matplotlib visualization plt bar()

QT learning 05 introduction to QT creator project
![[Shangshui Shuo series] day 8](/img/66/2aaa82f122612db1775bdd45556d97.png)
[Shangshui Shuo series] day 8

333333333333333333333333333333

8软件工程环境

Matlab exercises -- program control process exercise

@Scheduled annotation pit, I stepped on it for you

@Scheduled注解的坑,我替你踩了

6.28日刷题题解

Inspiration collection · evaluation of creative writing software: flomo, obsidian memo, napkin, flowus
随机推荐
剑指 Offer 14- I. 剪绳子
gyctf_2020_document
The role of VMware virtual machine
How to write controller layer code gracefully?
旋转彩色三叶草
Siemens low code platform connects MySQL through database connector to realize addition, deletion, modification and query
Digital collection of cultural relics, opening a new way of cultural inheritance
剑指 Offer 14- II. 剪绳子 II
爬虫入门实战:斗鱼弹幕数据抓取,附送11节入门笔记
HTAP x cloud native: tidb accelerates the release of data value and realizes data agility
架构实战营模块5作业
500 error occurred after importing skins folder into solo blog skin
shell-位置参数变量和预定义变量
Construction of module 5 of actual combat Battalion
Leetcode (680) -- verifying palindrome string II
After crossing, she said that the multiverse really exists
西门子低代码 9.14版本: 满足不同需求
New titanium cloud service won the "2022 love analysis · panoramic report of it operation and maintenance manufacturers" cloud management platform CMP representative manufacturer
Ingenious application of golang generics to prevent null pointer errors of variables and structural fields
漫画安全HIDS、EDR、NDR、XDR