All Projects → sxei → lucene-demo

sxei / lucene-demo

Licence: MIT license
基于lucene-5.5.4实现的全文检索demo

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to lucene-demo

Spark Lucenerdd
Spark RDD with Lucene's query and entity linkage capabilities
Stars: ✭ 114 (+62.86%)
Mutual labels:  lucene
Fxdesktopsearch
A JavaFX based desktop search application.
Stars: ✭ 147 (+110%)
Mutual labels:  lucene
Examine
A .NET indexing and search engine powered by Lucene.Net
Stars: ✭ 208 (+197.14%)
Mutual labels:  lucene
Luqum
A lucene query parser generating ElasticSearch queries and more !
Stars: ✭ 118 (+68.57%)
Mutual labels:  lucene
Elastiknn
Elasticsearch plugin for nearest neighbor search. Store vectors and run similarity search using exact and approximate algorithms.
Stars: ✭ 139 (+98.57%)
Mutual labels:  lucene
Eclipse Instasearch
Eclipse plug-in for fast code search
Stars: ✭ 165 (+135.71%)
Mutual labels:  lucene
Springboot Templates
springboot和dubbo、netty的集成,redis mongodb的nosql模板, kafka rocketmq rabbit的MQ模板, solr solrcloud elasticsearch查询引擎
Stars: ✭ 100 (+42.86%)
Mutual labels:  lucene
hermes
A library and microservice implementing the health and care terminology SNOMED CT with support for cross-maps, inference, fast full-text search, autocompletion, compositional grammar and the expression constraint language.
Stars: ✭ 131 (+87.14%)
Mutual labels:  lucene
Everywhere
🔧 A tool can really search everywhere for you.
Stars: ✭ 147 (+110%)
Mutual labels:  lucene
Jblog
🔱一个简洁漂亮的java blog 👉基于Spring /MVC+ Hibernate + MySQL + Bootstrap + freemarker. 实现 🌈
Stars: ✭ 187 (+167.14%)
Mutual labels:  lucene
Elassandra
Elassandra = Elasticsearch + Apache Cassandra
Stars: ✭ 1,610 (+2200%)
Mutual labels:  lucene
Lucenenet
Apache Lucene.NET
Stars: ✭ 1,704 (+2334.29%)
Mutual labels:  lucene
Roaringbitmap
A better compressed bitset in Java
Stars: ✭ 2,460 (+3414.29%)
Mutual labels:  lucene
Puck Core
Open source, cross platform .NET Core CMS. Fast, scalable, code-first, unobtrusive and extensible with powerful querying and Lucene integration.
Stars: ✭ 115 (+64.29%)
Mutual labels:  lucene
Lucene
lucene技术细节
Stars: ✭ 233 (+232.86%)
Mutual labels:  lucene
Ik Analyzer
支持Lucene5/6/7/8+版本, 长期维护。
Stars: ✭ 112 (+60%)
Mutual labels:  lucene
Code4java
Repository for my java projects.
Stars: ✭ 164 (+134.29%)
Mutual labels:  lucene
cloud-note
无道云笔记,原生JSP的仿有道云笔记项目
Stars: ✭ 66 (-5.71%)
Mutual labels:  lucene
Clavin
CLAVIN (Cartographic Location And Vicinity INdexer) is an open source software package for document geoparsing and georesolution that employs context-based geographic entity resolution.
Stars: ✭ 237 (+238.57%)
Mutual labels:  lucene
Smartstorenet
Open Source ASP.NET MVC Enterprise eCommerce Shopping Cart Solution
Stars: ✭ 2,363 (+3275.71%)
Mutual labels:  lucene

lucene-demo

基于lucene-5.5.4实现的全文检索demo。

要求:jdk1.7,本来是打算用Lucene6.x的,结果发现必须jdk1.8以上,果断放弃改用Lucene5.x了。

详细说明:http://blog.liuxianan.com/lucene-hello-world.html

运行

这其实是一个JavaSE项目,非web项目,使用Eclipse打开。这里有2个例子,一个是文件搜索示例,一个是数据库搜索示例。

文件搜索

新建目录E:\lucene用于存放索引,新建目录E:\text,在里面放一些测试文件,最好是文本文件,可以多目录。然后运行FileSearchDemo.java即可看到效果。

数据库搜索

本地新建一个名为lucene-demo的数据库,然后导入本工程根目录的lucene-demo.sql,然后新建E:\lucene-db目录,打开DbSearchDemo.java将数据库用户名密码改成你自己的,然后右键运行即可看到效果。

其它说明

使用了IK Analyzer2012中文分词工具,这个demo是入门级的,想深入学习的可以跟着这位仁兄的文章去学:http://blog.csdn.net/wuyinggui10000/article/category/3173543

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].