Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我有一个标记化的字符串,例如“12345 12346 12347”,那么范围查询是否适用于该字段?
不确定.net,但在 Java 中这会产生奇怪的结果。对于字符串范围查询,Lucene 使用String.compareTo(String). 所以,例如,
String.compareTo(String)
"2".compareTo("10")
将导致1这意味着2在字典上大于10. 同时,按1字典顺序小于10。那是你要的吗?
1
2
10