资源简介
基本能做到 10G的数据 0.0x秒返回
只要
1、将Searcher searcher = new IndexSearcher(reader);替换为InaccurateIndexSearcher searcher = new InaccurateIndexSearcher(reader, 5000);
2、将Hits hits = searcher.search(query);替换为InaccurateHits hits = searcher.search(query, sort, ascending);
就行了
代码片段和文件信息
package org.apache.lucene.search;
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License Version 2.0
* (the “License“); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing software
* distributed under the License is distributed on an “AS IS“ BASIS
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND either express or implied.
* See the License for the specific language governing p
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 16569 2007-05-15 11:14 org\apache\lucene\search\InaccurateBooleanScorer2.java
文件 6238 2007-05-15 11:10 org\apache\lucene\search\InaccurateBooleanWeight2.java
文件 3531 2007-05-15 11:09 org\apache\lucene\search\InaccurateHit.java
文件 2339 2007-05-15 11:08 org\apache\lucene\search\InaccurateHitIterator.java
文件 7067 2007-05-15 11:07 org\apache\lucene\search\InaccurateHits.java
文件 4267 2007-05-15 10:56 org\apache\lucene\search\InaccurateIndexSearcher.java
文件 3109 2007-05-15 11:03 org\apache\lucene\util\InaccurateResultAggregation.java
目录 0 2007-05-15 10:50 org\apache\lucene\search
目录 0 2007-05-15 10:50 org\apache\lucene\util
目录 0 2007-05-15 10:50 org\apache\lucene
目录 0 2007-05-15 10:50 org\apache
目录 0 2007-05-15 10:50 org
文件 1075 2007-05-15 12:08 readme.txt
----------- --------- ---------- ----- ----
44195 13
相关资源
- mysql数据处理,java用户登录处理
- springboot2.0+spring cloud+eureka(分布式项
- 前端开发(uCharts)大全
- 法律咨询信息系统(java+jsp+sqlserver)
- Java快速开发平台源码(renren-fast)
- 锐聘学院QST青软JavaWeb十二个打包
- 3.3.6微信支付JAVA版demo
- jacob 1.19
- javaweb网上购物系统源码(附数据库脚
- jsp+servlet+jdbc开发学生信息后台管理系
- javaweb校园宿舍系统(附数据库脚本)
- JavaWeb书城项目(附数据库脚本)
- 安全测试工具ysoserial
- 计算机网络CRC循环冗余检测系统
- 基于JAVA_JSP电子书系统(源码+数据库
- 泛微OA维护手册.docx
- Java网络编程知识点总结.xmind
- websockets实现tomcat日志在线输出
- 一站式Java网络编程 BIO-NIO-AIO资料源码
- jsp讲解
- 基于SSH框架的JavaWeb项目—人员信息管
- javaweb实现的邮件收发系统(附数据库
- Java 仿QQ(附客户端以及服务端源码)
- Java TCP IP Socket
- java定时发送邮件(基于quartz)
- Java Swing开发的《星际争霸》游戏
- java+数据库商品交易管理系统(附数据
- 使用java语言编译一个计算器
- java swing工资管理系统(源码+数据库
- JAVALibrary
评论
共有 条评论