Full Text Search Interface

Full Text Search Interface based on Apache Lucene

License

License

Categories

Categories

Net
GroupId

GroupId

net.bndy
ArtifactId

ArtifactId

ftsi
Last Version

Last Version

1.6.1
Release Date

Release Date

Type

Type

jar
Description

Description

Full Text Search Interface
Full Text Search Interface based on Apache Lucene
Project URL

Project URL

https://github.com/bndynet/ftsi
Project Organization

Project Organization

BNDY-NET
Source Code Management

Source Code Management

https://github.com/bndynet/ftsi

Download ftsi

How to add to project

<!-- https://jarcasting.com/artifacts/net.bndy/ftsi/ -->
<dependency>
    <groupId>net.bndy</groupId>
    <artifactId>ftsi</artifactId>
    <version>1.6.1</version>
</dependency>
// https://jarcasting.com/artifacts/net.bndy/ftsi/
implementation 'net.bndy:ftsi:1.6.1'
// https://jarcasting.com/artifacts/net.bndy/ftsi/
implementation ("net.bndy:ftsi:1.6.1")
'net.bndy:ftsi:jar:1.6.1'
<dependency org="net.bndy" name="ftsi" rev="1.6.1">
  <artifact name="ftsi" type="jar" />
</dependency>
@Grapes(
@Grab(group='net.bndy', module='ftsi', version='1.6.1')
)
libraryDependencies += "net.bndy" % "ftsi" % "1.6.1"
[net.bndy/ftsi "1.6.1"]

Dependencies

compile (4)

Group / Artifact Type Version
net.bndy : lib jar 1.0.9
org.apache.lucene : lucene-core jar 7.2.1
org.apache.lucene : lucene-queryparser jar 7.2.1
org.apache.lucene : lucene-highlighter jar 7.2.1

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

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>

Versions

Version
1.6.1
1.6
1.5
1.4
1.3
1.2
1.1
1.0-pre
1.0