Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bndynet/ftsi

Full Text Search Interface based on Apache Lucene
https://github.com/bndynet/ftsi

full-text-search lucene

Last synced: about 2 months ago
JSON representation

Full Text Search Interface based on Apache Lucene

Awesome Lists containing this project

README

        

# Full Text Search Interface

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

## How to Use

```java
public class Entity {
@Indexable(isKey = true)
private String id;
private String title;
private String Content;

// getters and setters
// ...
}

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

IndexService indexService = new IndexService("");
indexService.createIndex(entityInstance);
indexService.deleteIndex(Entity.class, "");
SearchResult 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

```xml

net.bndy
ftsi
1.0

```