Inclusive ranges can be specified in Google-style. There is an extended syntax for more complex ranges. Unbounded ranges can be defined using MIN and MAX for numeric and date types and “\u0000” and “\FFFF” for text (anything that is invalid).
可按照Google样式指定搜索范围。对于更复杂的范围有一个扩展的语法。对于数值和日期类型,可以使用MIN和MAX定义无边界范围,对于文本,可以使用“\u0000”和“\FFFF”(任何无效的内容)。

Lucene Google Description Example
[#1 TO #2] #1..#2 #1 <= x <= #2 0..5、[0 TO 5]
<#1 TO #2] #1 < x <= #2 <0 TO 5]
[#1 TO #2> #1 <= x < #2 [0 TO 5>
<#1 TO #2> #1 < x < #2 <0 TO 5>
TEXT:apple..banana
my:int:[0 TO 10]
my:float:2.5..3.5
my:float:0..MAX
mt:text:[l TO "\uFFFF"]
文档更新时间: 2020-02-09 14:34   作者:凌云文档