/** * 为数字和日期建立索引: * NumericField(String name, int precisionStep, Store store, boolean index) * 为
原创 2022-06-21 18:47:18
59阅读
首先是建立索引: Document doc = new Document(); doc.add(new NumericField("Count").setDoubleValue(0.1); 然后就是搜索了,只要新建对应的: Query query = NumericRangeQuery.ne...
转载 2010-09-21 03:39:00
210阅读
2评论