Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/bndynet/spring-boot-starter-ftsi

Spring Boot Starter Project for Full Text Search Interface
https://github.com/bndynet/spring-boot-starter-ftsi

full-text-search lucene spring-boot spring-boot-starter

Last synced: 9 days ago
JSON representation

Spring Boot Starter Project for Full Text Search Interface

Awesome Lists containing this project

README

        

# Spring Boot Starter [FTSI](https://github.com/bndynet/ftsi)

Spring Boot Starter Project for Full Text Search Interface (https://github.com/bndynet/ftsi)

## Usage

**Maven**

Visit http://mvnrepository.com/artifact/net.bndy/spring-boot-starter-ftsi to get more versions.

```xml

net.bndy
spring-boot-starter-ftsi
1.0-pre

```

**File: application.yml**

```yml
spring:
ftsi:
analyzer: org.apache.lucene.analysis.standard.StandardAnalyzer # define your analyzer, StandardAnalyzer is the default analyzer if empty
data-path: ./ft-folder # the path to store full text index files
highlight-pre-tag: # the beginning part of html tag for highlight matched text
highlight-post-tag:
# the ending part of html tag for highlight matched text
highlight-fragment-size: 300 # the length of returned text which contains highlight content
```

**Java Code**

```java

@SpringBootApplication
public class Application {

@Autowired
private IndexService indexService;

public static void main(String[] args) {
SpringApplication.run(Application.class, args);
// start to use indexService...
}
}

```

NOTE: Click [here](https://github.com/bndynet/ftsi) to get started for `IndexService`.