spring boot starter ftsi
1.0.0
전체 텍스트 검색 인터페이스를위한 Spring Boot 스타터 프로젝트 (https://github.com/bndynet/ftsi)
Maven
더 많은 버전을 얻으려면 http://mvnrepository.com/artifact/net.bndy/spring-boot-starter-ftsi를 방문하십시오.
< dependency >
< groupId >net.bndy</ groupId >
< artifactId >spring-boot-starter-ftsi</ artifactId >
< version >1.0-pre</ version >
</ dependency >파일 : application.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 : <b class="highlight"> # the beginning part of html tag for highlight matched text
highlight-post-tag : </b> # the ending part of html tag for highlight matched text
highlight-fragment-size : 300 # the length of returned text which contains highlight content자바 코드
@ SpringBootApplication
public class Application {
@ Autowired
private IndexService indexService ;
public static void main ( String [] args ) {
SpringApplication . run ( Application . class , args );
// start to use indexService...
}
} 참고 : IndexService 시작하려면 여기를 클릭하십시오.