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]


你可能感兴趣的:(java,xml,Solr)