Allows clients to specify a Lucene query to identify a set of documents. If non-blank,the explain info of each document which matches this query, relative to the main query (specified by the q parameter) will be returned along with the rest of the debugging information.
timeAllowed
指定查询处理的时间,单位毫秒。如果查询在指定的时间未完成,则只返回部分信息
segmentTerminateEarly
Indicates that, if possible, Solr should stop collecting documents from each individual (sorted) segment once it can determine that any subsequent documents in that segment will not be candidates for the rows being returned. The default is false.
(jakarta OR apache) AND website 查询jakarta或apache出现,并且website必须出现 title:(+return +"pink panther") 查询title中包含return和“pink panther”
1
2
6. 查询语句中使用注释
solr的查询语句支持C语言格式的注释。
"jakarta apache"/* this is a comment in the middle of a normal query string */OR jakarta
1
2
3
7. 时间和日期的表示
timestamp:[* TO NOW]
createdate:[1976-03-06T23:59:59.999Z TO *]
createdate:[1995-12-31T23:59:59.999Z TO2007-03-06T00:00:00Z]
pubdate:[NOW-1YEAR/DAY TO NOW/DAY+1DAY]
createdate:[1976-03-06T23:59:59.999Z TO1976-03-06T23:59:59.999Z+1YEAR]
createdate:[1976-03-06T23:59:59.999Z/YEAR TO1976-03-06T23:59:59.999Z]
1
2
3
4
5
6
7
8. solr标准的查询解析与Lucene的查询解析的不同点如下:
*号可以用在范围查询的开始或结束 field:[* TO 100] field值小于等于100 field:[100 TO *] field值大于等于100 field:[* TO *] 匹配包含field字段的所有文档
支持单独出现的否定查询 -inStock:false field值inStack是false -field:[* TO *] 匹配field无值的所有文档
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· AI与.NET技术实操系列:基于图像分类模型对图像进行分类
· go语言实现终端里的倒计时
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· 25岁的心里话
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· ollama系列01:轻松3步本地部署deepseek,普通电脑可用
· 按钮权限的设计及实现
2015-07-18 SQL Server 2008 数据库同步的两种方式 (发布、订阅)
2015-07-18 SQL Server 2008 数据库同步的两种方式 (发布、订阅)
2015-07-18 通过SQL Server 2008数据库复制实现数据库同步备份
2015-07-18 SQL Server 2008 R2数据库镜像部署图文教程
2015-07-18 SQL 2008提供几种数据同步方式
2014-07-18 web页面导出到Excel乱码解决