Skip to content
/ ftsi Public

Full Text Search Interface based on Apache Lucene

Notifications You must be signed in to change notification settings

bndynet/ftsi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Full Text Search Interface

This is an interface based on Apache Lucene for easy to code and easy to search.

How to Use

public class Entity {
    @Indexable(isKey = true)
    private String id;
    private String title;
    private String Content;
    
    // getters and setters
    // ...
}

Entity entity = new Entity();
entity.setId("<id>");
entity.setTitle("Hello World");
entity.setContent("This is the content.");

IndexService indexService = new IndexService("<path for index persistence>");
indexService.createIndex(entityInstance);
indexService.deleteIndex(Entity.class, "<id>");
SearchResult<Entity> matched = indexService.search("world", Entity.class, 1, 10);

Example Project: https://github.com/bndynet/web-framework-for-java

Maven

More versions, please visit http://mvnrepository.com/artifact/net.bndy

<dependency>
    <groupId>net.bndy</groupId>
    <artifactId>ftsi</artifactId>
    <version>1.0</version>
</dependency>

About

Full Text Search Interface based on Apache Lucene

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages