欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

solr 中SolrQuerySyntax SolrJavaXML 

程序员文章站 2022-07-14 20:09:49
...
SolrQuery 索引支持数值索引

may be used for either or both endpoints to specify an open-ended range query. 

field:[* TO 100] finds all field values less than or equal to 100 

field:[100 TO *] finds all field values greater than or equal to 100 

field:[* TO *] matches all documents with the field 



时间处理方式:

在schema.xml 声明查询的时间字段自动映射成solr.DateField,响应支持查询结构

createdate:[1976-03-06T23:59:59.999Z TO *] 

createdate:[1995-12-31T23:59:59.999Z TO 2007-03-06T00:00:00Z]


相关标签: Solr Java XML