`
laziobird
  • 浏览: 23215 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

solr 中SolrQuerySyntax

阅读更多
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]


分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics